full project: admin panel, backend modules, docs

This commit is contained in:
Lizandro Guarnizo
2026-06-03 22:11:01 -05:00
parent 1635723035
commit afc096d552
94 changed files with 15994 additions and 240 deletions
+8
View File
@@ -9,4 +9,12 @@ export class SettingsService {
const setting = await this.prisma.settings.findUnique({ where: { key: 'global' } });
return setting?.value;
}
async updateGlobal(value: Record<string, any>) {
return this.prisma.settings.upsert({
where: { key: 'global' },
create: { key: 'global', value },
update: { value },
});
}
}