From ca7eb9d8542851b16fa52c29bf3e9a4dd836ce4f Mon Sep 17 00:00:00 2001 From: Polaris Date: Thu, 5 Sep 2024 22:07:58 -0400 Subject: [PATCH] updated const name --- app/(sharing)/[token]/token.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/(sharing)/[token]/token.ts b/app/(sharing)/[token]/token.ts index ced965e..521a90a 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 PageIsValid = await daphnis.linkSharingToken.findUnique({ + const ValidToken = await daphnis.linkSharingToken.findUnique({ where: { token, }, }); - if (!PageIsValid) { + if (!ValidToken) { return { - error: "404", + error: "Error.", }; }