Oopsie lol
This commit is contained in:
parent
0c0655a7e5
commit
f5ca388f8c
@ -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([
|
||||
|
Loading…
x
Reference in New Issue
Block a user