typeorm logger

This commit is contained in:
hannathkadher
2025-04-22 10:20:48 +04:00
parent be3c9f730d
commit fcb27155d8
8 changed files with 180 additions and 65 deletions

View File

@ -0,0 +1,8 @@
import { AsyncLocalStorage } from 'async_hooks';
export interface RequestContextStore {
requestId?: string;
userId?: string;
}
export const requestContext = new AsyncLocalStorage<RequestContextStore>();