Skip to content

Commit

Permalink
chore: set limit to two days
Browse files Browse the repository at this point in the history
Signed-off-by: ZTL-UwU <[email protected]>
  • Loading branch information
ZTL-UwU committed Dec 31, 2024
1 parent 3c6a503 commit 0cd4a2d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/trpc/routers/song.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ async function checkCanSubmit(userId: string) {
if (!latestSubmission)
return true;

// more than three days
if (Date.now() - latestSubmission.createdAt.getTime() >= 3 * 24 * 60 * 60 * 1000)
// more than two days
if (Date.now() - latestSubmission.createdAt.getTime() >= 2 * 24 * 60 * 60 * 1000)
return true;
return false;
}
Expand Down

0 comments on commit 0cd4a2d

Please sign in to comment.