moved patcher to /chunithm/patcher
This commit is contained in:
@ -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",
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user