Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix deletion time check
  • Loading branch information
regalijan committed Nov 19, 2024
1 parent 8544d90 commit 82610a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/api/events-team/events/[id].ts
Expand Up @@ -29,7 +29,7 @@ export async function onRequestDelete(context: RequestContext) {
eventData.day,
);

if (!isETM && now.getTime() <= eventDate.getTime())
if (!isETM && now.getTime() >= eventDate.getTime())
return jsonError(
"Event cannot be deleted on or after the scheduled date",
403,
Expand Down

0 comments on commit 82610a2

Please sign in to comment.