From a87b0cd4957420f0c6866065ce80edbc88d67c5d Mon Sep 17 00:00:00 2001 From: Polaris Date: Thu, 5 Sep 2024 22:26:57 -0400 Subject: [PATCH] moved patcher to /chunithm/patcher --- app/(authenticated)/{ => chunithm}/patcher/page.tsx | 0 app/(sharing)/[token]/token.ts | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) rename app/(authenticated)/{ => chunithm}/patcher/page.tsx (100%) diff --git a/app/(authenticated)/patcher/page.tsx b/app/(authenticated)/chunithm/patcher/page.tsx similarity index 100% rename from app/(authenticated)/patcher/page.tsx rename to app/(authenticated)/chunithm/patcher/page.tsx diff --git a/app/(sharing)/[token]/token.ts b/app/(sharing)/[token]/token.ts index 521a90a..f6922cb 100644 --- a/app/(sharing)/[token]/token.ts +++ b/app/(sharing)/[token]/token.ts @@ -33,15 +33,15 @@ export async function generateShareToken(id: number): Promise<{ } export async function shareScore(token: string) { - const ValidToken = await daphnis.linkSharingToken.findUnique({ + const IsTokenValid = await daphnis.linkSharingToken.findUnique({ where: { token, }, }); - if (!ValidToken) { + if (!IsTokenValid) { return { - error: "Error.", + error: "404", }; }