feat: add asset import services

This commit is contained in:
Simo committed 2026-07-12 19:12:25 +02:00
1 parent 4b596226e0
commit 3497df9dfd
46 files changed
+5383

No files matched your search

+9
View File
@@ -70,6 +70,15 @@ class SiteSettings {
return s === "1" || s === "true";
}
async update(key: string, value: string): Promise<void> {
await prisma.websiteSetting.upsert({
where: { key },
create: { key, value },
update: { value },
});
this.reload();
}
reload(): void {
this.cache = null;
if (redis) {