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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user