Files
backend/libs/common/src/context/request-context.ts
hannathkadher fcb27155d8 typeorm logger
2025-04-22 10:20:48 +04:00

9 lines
209 B
TypeScript

import { AsyncLocalStorage } from 'async_hooks';
export interface RequestContextStore {
requestId?: string;
userId?: string;
}
export const requestContext = new AsyncLocalStorage<RequestContextStore>();