import { AsyncLocalStorage } from 'async_hooks';
const auditUserIdAsyncLocalStorage = new AsyncLocalStorage();
export const getAuditUserId = ()=>auditUserIdAsyncLocalStorage.getStore();
export const attachAuditUserToDbSession = async (req, _res, next)=>{
    auditUserIdAsyncLocalStorage.run(req.user?.id, next);
};

//# sourceMappingURL=attachAuditUserToDbSession.js.map