feat: Added methods for organization
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,5 +6,6 @@ export interface RequestContext {
|
||||
correlationId?: string;
|
||||
headers: Record<string, string>;
|
||||
user?: JwtPayload;
|
||||
orgId?: string;
|
||||
tx?: Prisma.TransactionClient;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user