fix(validation & catalog): disable strict forbidNonWhitelisted in NestJS ValidationPipe and wire full catalog mode & maintenance mode settings to frontend
Deploy Canina / deploy (push) Failing after 29s
Deploy Canina / deploy (push) Failing after 29s
This commit is contained in:
1 parent
9e233bee27
commit
7cc9194827
3 files changed
+44
-16
No files matched your search
@@ -13,7 +13,17 @@ export class SettingsService {
|
||||
constructor(private prisma: PrismaService) {}
|
||||
|
||||
async getUiTexts() {
|
||||
return this.prisma.uiText.findMany();
|
||||
const [uiTexts, settings] = await Promise.all([
|
||||
this.prisma.uiText.findMany(),
|
||||
this.prisma.setting.findMany(),
|
||||
]);
|
||||
|
||||
const merged = [...uiTexts];
|
||||
settings.forEach((s) => {
|
||||
merged.push({ key: s.key, value: String(s.value) } as any);
|
||||
});
|
||||
|
||||
return merged;
|
||||
}
|
||||
|
||||
async updateUiText(key: string, value: string) {
|
||||
|
||||
Reference in new issue
Block a user