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:
hailin 2026-02-23 05:00:17 -08:00
parent 840318f449
commit 09274aa6af
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ export class StandingOrderExecutorService implements OnModuleInit {
let tenants: { id: string; name: string }[];
try {
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;
} catch (err) {