mirror of
https://github.com/SyncrowIOT/backend.git
synced 2026-10-24 17:57:54 +00:00
typeorm logger
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { AsyncLocalStorage } from 'async_hooks';
|
||||
|
||||
export interface RequestContextStore {
|
||||
requestId?: string;
|
||||
userId?: string;
|
||||
}
|
||||
|
||||
export const requestContext = new AsyncLocalStorage<RequestContextStore>();
|
||||
Reference in New Issue
Block a user