feat: Added methods for organization

This commit is contained in:
SauravDhakal
2026-03-11 21:47:35 +05:45
parent 6fc494687a
commit 349196b801
24 changed files with 504 additions and 189 deletions

View File

@@ -47,4 +47,12 @@ export class RequestContextService {
get isTransaction(): boolean {
return !!this.get().tx;
}
get orgId(): string {
return this.orgId
}
set orgId(id: string) {
this.set('orgId', id)
}
}

View File

@@ -6,5 +6,6 @@ export interface RequestContext {
correlationId?: string;
headers: Record<string, string>;
user?: JwtPayload;
orgId?: string;
tx?: Prisma.TransactionClient;
}