Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Check for game appeal block on new submissions
  • Loading branch information
regalijan committed Dec 19, 2023
1 parent bd8061e commit a959110
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions functions/api/game-appeals/precheck.ts
Expand Up @@ -35,6 +35,16 @@ export default async function (
reason: "You do not appear to be banned",
};

const appealBlock = await context.env.DATA.get(`gameappealblock_${user}`);

if (appealBlock)
return {
can_appeal: false,
reason: `You must wait until ${new Date(
parseInt(appealBlock),
).toLocaleString()} to submit another appeal`,
};

let userLogs;

try {
Expand Down

0 comments on commit a959110

Please sign in to comment.