Fix deletion time check

This commit is contained in:
2024-11-19 00:06:26 -05:00
parent 8544d90691
commit 82610a2b17

View File

@ -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,