fix(api): allow nest build of program-settings and cleaner replica --check

Cast stored JSON through asSettingsArray so tsc accepts the snapshot payload, and strip Prisma ?schema= from DATABASE_URL before psql.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-17 16:01:55 +03:30
co-authored by Cursor
parent f2cf8c9035
commit 25c0a4e941
3 changed files with 27 additions and 5 deletions
@@ -144,7 +144,9 @@ export class ProgramSettingsService {
importedAt: '',
source: 'khanegi_admin',
apiBase: '',
items: raw.filter((row) => this.isSystemSetting(row as ProgramSettingRow)),
items: this.asSettingsArray(raw).filter((row) =>
this.isSystemSetting(row),
),
};
}
return null;