mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 13:50:31 +00:00
refactor(nestjs): banking module
This commit is contained in:
@@ -51,4 +51,14 @@ export class TenancyContext {
|
||||
|
||||
return this.systemUserModel.query().findById(userId);
|
||||
}
|
||||
|
||||
async getTenantJobPayload() {
|
||||
const tenant = await this.getTenant();
|
||||
const user = await this.getSystemUser();
|
||||
|
||||
const organizationId = tenant.organizationId;
|
||||
const userId = user.id;
|
||||
|
||||
return { organizationId, userId };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user