refactor: remove catalog sync jobs and version history
CI / Verify (push) Successful in 58s
CI / Build immutable images and deploy (push) Successful in 1m19s

This commit is contained in:
2026-08-31 23:21:14 +07:00 Unverified
parent 737b54bff8
commit bb06108899
14 changed files with 6865 additions and 299 deletions
+3 -4
View File
@@ -16,9 +16,9 @@ import { builtInTemplates } from "@/lib/templates";
import { persistTemplateApplication } from "@/lib/templates/persist";
import {
createGuide,
enqueueCatalogSync,
permanentlyDeleteGuide,
restoreGuide,
runCatalogSync,
saveArtifacts,
saveConstellations,
saveExtraSections,
@@ -274,10 +274,9 @@ export async function deleteStructuredGuide(guideId: string) {
}
export async function startCatalogSync() {
const admin = await requireAdmin();
await requireAdmin();
try {
const job = await enqueueCatalogSync(admin.user.id);
return { status: "saved" as const, jobId: job.id };
return await runCatalogSync();
} catch (cause) {
return { status: "error" as const, message: cause instanceof Error ? cause.message : "เริ่ม Sync ไม่สำเร็จ" };
}