mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2025-12-10 16:12:50 +00:00
fix tenant update
This commit is contained in:
parent
18cf9d9517
commit
76b509e853
@ -165,7 +165,7 @@ export class TenantSubscriber implements EntitySubscriberInterface<any> {
|
||||
queryBuilder.andWhere(
|
||||
`${
|
||||
queryBuilder.alias ? queryBuilder.alias + '.' : ''
|
||||
}tenantId = ${tenantId}`
|
||||
}tenantId = '${tenantId}'`
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -195,8 +195,7 @@ export class TenantSubscriber implements EntitySubscriberInterface<any> {
|
||||
if (!this.tenant?.enable) return;
|
||||
const tenantId = this.getTenantId();
|
||||
if (tenantId) {
|
||||
queryBuilder.set({ tenantId });
|
||||
queryBuilder.andWhere(`tenantId = ${tenantId}`);
|
||||
queryBuilder.andWhere(`tenantId = '${tenantId}'`);
|
||||
}
|
||||
}
|
||||
|
||||
@ -208,7 +207,7 @@ export class TenantSubscriber implements EntitySubscriberInterface<any> {
|
||||
if (!this.tenant?.enable) return;
|
||||
const tenantId = this.getTenantId();
|
||||
if (tenantId) {
|
||||
queryBuilder.andWhere(`tenantId = ${tenantId}`);
|
||||
queryBuilder.andWhere(`tenantId = '${tenantId}'`);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user