refactor(nestjs): banking module

This commit is contained in:
Ahmed Bouhuolia
2025-06-02 21:32:53 +02:00
parent 7247b52fe5
commit 5595478e19
18 changed files with 216 additions and 103 deletions

View File

@@ -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 };
}
}