Oopsie lol
This commit is contained in:
@ -11,7 +11,7 @@ export async function onRequestPost(context: RequestContext) {
|
||||
.bind(event.id)
|
||||
.first();
|
||||
|
||||
if (typeof completionTimeRow?.performed_at !== "number")
|
||||
if (typeof completionTimeRow?.performed_at === "number")
|
||||
return jsonError(
|
||||
"The event is already marked as complete or forgotten",
|
||||
400,
|
||||
|
@ -11,7 +11,7 @@ export async function onRequestPost(context: RequestContext) {
|
||||
.bind(event.id)
|
||||
.first();
|
||||
|
||||
if (typeof row?.performed_at !== "number")
|
||||
if (typeof row?.performed_at === "number")
|
||||
return jsonError("Event already marked as completed or forgotten", 400);
|
||||
|
||||
await D1.batch([
|
||||
|
Reference in New Issue
Block a user