Improve MineGeo UI and application flows
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 2m37s
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 2m37s
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { timingSafeEqual } from "node:crypto";
|
||||
import { NextRequest, NextResponse } from "next/server";
|
||||
import { dispatchDiscordAnnouncements } from "@/lib/discord-announcements";
|
||||
import { dispatchTournamentAnnouncements } from "@/lib/tournament-discord";
|
||||
import { admin, required } from "@/lib/supabase";
|
||||
export const runtime = "nodejs";
|
||||
export const dynamic = "force-dynamic";
|
||||
export const maxDuration = 300;
|
||||
@@ -15,6 +17,8 @@ export async function GET(request: NextRequest) {
|
||||
)
|
||||
return NextResponse.json({ error: "Unauthorized" }, { status: 401 });
|
||||
try {
|
||||
required(await admin().rpc("tick_tournaments"));
|
||||
await dispatchTournamentAnnouncements(admin());
|
||||
await dispatchDiscordAnnouncements();
|
||||
return NextResponse.json(
|
||||
{ ok: true },
|
||||
|
||||
Reference in New Issue
Block a user