Fix deletion time check

This commit is contained in:
Regalijan 2024-11-19 00:06:26 -05:00
parent 8544d90691
commit 82610a2b17
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -29,7 +29,7 @@ export async function onRequestDelete(context: RequestContext) {
eventData.day, eventData.day,
); );
if (!isETM && now.getTime() <= eventDate.getTime()) if (!isETM && now.getTime() >= eventDate.getTime())
return jsonError( return jsonError(
"Event cannot be deleted on or after the scheduled date", "Event cannot be deleted on or after the scheduled date",
403, 403,