hotfix: authcheck debug route
This commit is contained in:
@@ -35,7 +35,7 @@ async function probe(name: string, fn: () => Promise<unknown>) {
|
||||
}
|
||||
|
||||
export async function GET(request: Request) {
|
||||
if (!adminCheck()) {
|
||||
if (!await adminCheck()) {
|
||||
return new Response("Unauthorized", { status: 401 });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user