Patch admin check

This commit is contained in:
Dreamgineer
2025-12-22 10:45:15 +07:00 Unverified
parent 0db664b225
commit 4c35eeef52
+2
View File
@@ -393,6 +393,8 @@ export async function cancel(sid: string) {
}
export async function discordCall(id: string) {
if (!(await adminCheck())) throw "Unauthorized";
return await fetch(DISCORD_WEBHOOK_URL, {
method: "POST",
body: JSON.stringify({