admin roadmap done, reupload request, submission history, manual override

This commit is contained in:
2026-05-18 20:25:21 +07:00
parent b844ebdfac
commit bc4973a594
20 changed files with 1254 additions and 121 deletions
+6
View File
@@ -1,4 +1,5 @@
import { prisma } from "@/lib/prisma";
import { notifyAdmins } from "@/lib/admin-notify";
/**
* Wrapper untuk cron route handler — otomatis log start/finish/error ke
@@ -62,6 +63,11 @@ export async function runCron<T>(
})
.catch((e) => console.error(`[cron-runner] gagal update FAILED`, e));
}
// Fire-and-forget — jangan blok response cron route handler. Notif gagal
// di-log sendiri di `notifyAdmins`.
void notifyAdmins(
`Cron \`${jobName}\` FAILED: ${message}`
);
return { ok: false, error: message };
}
}