Fix logic inversion braking interested

This commit is contained in:
Hornwitser 2025-03-09 23:56:39 +01:00
parent e8226e0062
commit 40c25f8990

View file

@ -7,7 +7,7 @@ export default defineEventHandler(async (event) => {
const body: Pick<Account, "interestedIds" | "timezone"> = await readBody(event);
if (
body.interestedIds !== undefined
&& !(
&& (
!(body.interestedIds instanceof Array)
|| !body.interestedIds.every(id => typeof id === "string")
)