Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Oopsie lol
  • Loading branch information
regalijan committed Feb 7, 2025
1 parent 0c0655a commit f5ca388
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functions/api/events-team/events/[id]/complete.ts
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion functions/api/events-team/events/[id]/forgotten.ts
Expand Up @@ -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([
Expand Down

0 comments on commit f5ca388

Please sign in to comment.