Fix math
This commit is contained in:
@@ -44,7 +44,7 @@ export async function loader({ context }: { context: RequestContext }) {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
return preBookedEvents > 3;
|
return preBookedEvents >= 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function () {
|
export default function () {
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ export async function onRequestPost(context: RequestContext) {
|
|||||||
month: currentMonth,
|
month: currentMonth,
|
||||||
year: currentYear,
|
year: currentYear,
|
||||||
},
|
},
|
||||||
})) > 3
|
})) >= 3
|
||||||
)
|
)
|
||||||
return jsonError("Too many events scheduled", 403);
|
return jsonError("Too many events scheduled", 403);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user