Fix deletion time check
This commit is contained in:
parent
8544d90691
commit
82610a2b17
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user