feat : remove legacy feature
CI / Verify (push) Successful in 1m21s
CI / Build immutable images and deploy (push) Successful in 4m32s

This commit is contained in:
2026-09-10 19:45:06 +07:00 Unverified
parent cc0757d0a0
commit 249af29e9b
56 changed files with 5491 additions and 9393 deletions
-31
View File
@@ -1,31 +0,0 @@
import { closeDb, getDb } from "@/db/client";
import { templates } from "@/db/schema";
import { builtInTemplates } from "@/lib/templates";
const db = getDb();
for (const template of builtInTemplates) {
await db
.insert(templates)
.values({
slug: template.slug,
name: template.name,
description: template.description,
category: template.category,
structure: template as unknown as Record<string, unknown>,
builtIn: true,
})
.onConflictDoUpdate({
target: templates.slug,
set: {
name: template.name,
description: template.description,
category: template.category,
structure: template as unknown as Record<string, unknown>,
builtIn: true,
updatedAt: new Date(),
},
});
}
await closeDb();