Fix deletion time check
This commit is contained in:
@ -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,
|
||||||
|
Reference in New Issue
Block a user