-
+
Justice Critcal: {song.judgeCritical! + song.judgeHeaven!}
-
+
Justice: {song.judgeJustice}
-
+
Attack: {song.judgeAttack}
-
+
Miss: {song.judgeGuilty}
diff --git a/app/(sharing)/[token]/token.ts b/app/(sharing)/[token]/token.ts
index b643764..9696b4e 100644
--- a/app/(sharing)/[token]/token.ts
+++ b/app/(sharing)/[token]/token.ts
@@ -48,22 +48,5 @@ export async function shareScore(token: string) {
};
}
- // Check if token has expired
- // const tokenAge =
- // new Date().getTime() - new Date(PublicPage.createdAt).getTime();
- // const tokenAgeLimit = 1000 * 60 * 60 * 24; // 1 day in milliseconds
-
- // if (tokenAge > tokenAgeLimit) {
- // await daphnis.linkSharingToken.update({
- // where: {
- // token,
- // },
- // data: {
- // tokenExpiredAt: new Date(),
- // },
- // });
- // redirect("/");
- // }
-
return { success: true };
}