refactor: inventory cost process

This commit is contained in:
Ahmed Bouhuolia
2025-03-14 03:51:45 +02:00
parent 197d173db9
commit 08de50e2b1
14 changed files with 346 additions and 96 deletions

View File

@@ -23,7 +23,7 @@ export class AccountRepository extends TenantRepository {
private readonly tenancyContext: TenancyContext,
@Inject(TENANCY_DB_CONNECTION)
private readonly tenantDBKnex: Knex,
private readonly tenantDBKnex: () => Knex,
) {
super();
}
@@ -32,7 +32,7 @@ export class AccountRepository extends TenantRepository {
* Gets the repository's model.
*/
get model(): typeof Account {
return Account.bindKnex(this.tenantDBKnex);
return Account.bindKnex(this.tenantDBKnex());
}
/**