fix: Scheduler 查询 public.tenants 而非 it0_shared.tenants
数据库实际 schema 是 public.tenants,不是 it0_shared.tenants。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
840318f449
commit
09274aa6af
|
|
@ -63,7 +63,7 @@ export class StandingOrderExecutorService implements OnModuleInit {
|
||||||
let tenants: { id: string; name: string }[];
|
let tenants: { id: string; name: string }[];
|
||||||
try {
|
try {
|
||||||
const result = await this.dataSource.query(
|
const result = await this.dataSource.query(
|
||||||
`SELECT id, name FROM it0_shared.tenants WHERE status = 'active'`,
|
`SELECT id, name FROM public.tenants WHERE status = 'active'`,
|
||||||
);
|
);
|
||||||
tenants = result;
|
tenants = result;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue