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", }; }