feat(artifact): refresh button

This commit is contained in:
2026-04-09 07:59:37 +07:00 Unverified
parent 10efbb4a9f
commit 37b31c782c
3 changed files with 61 additions and 25 deletions
+6
View File
@@ -229,6 +229,12 @@ export async function random() {
else throw "ไม่พบผู้ลงทะเบียนที่ยังไม่ตรวจสอบ";
}
export async function revalidateCard(sub: string) {
if (!(await adminCheck())) throw "Unauthorized";
await db.delete(cards).where(eq(cards.submission, sub));
revalidatePath(`/api/card/${sub}`);
}
export async function tlState(
data: Partial<typeof tierlistStates.$inferInsert>,
) {