moved patcher to /chunithm/patcher

This commit is contained in:
Polaris
2024-09-05 22:26:57 -04:00
parent ca7eb9d854
commit a87b0cd495
2 changed files with 3 additions and 3 deletions

View File

@ -33,15 +33,15 @@ export async function generateShareToken(id: number): Promise<{
} }
export async function shareScore(token: string) { export async function shareScore(token: string) {
const ValidToken = await daphnis.linkSharingToken.findUnique({ const IsTokenValid = await daphnis.linkSharingToken.findUnique({
where: { where: {
token, token,
}, },
}); });
if (!ValidToken) { if (!IsTokenValid) {
return { return {
error: "Error.", error: "404",
}; };
} }