Fix logic inversion braking interested
This commit is contained in:
parent
e8226e0062
commit
40c25f8990
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ export default defineEventHandler(async (event) => {
|
||||||
const body: Pick<Account, "interestedIds" | "timezone"> = await readBody(event);
|
const body: Pick<Account, "interestedIds" | "timezone"> = await readBody(event);
|
||||||
if (
|
if (
|
||||||
body.interestedIds !== undefined
|
body.interestedIds !== undefined
|
||||||
&& !(
|
&& (
|
||||||
!(body.interestedIds instanceof Array)
|
!(body.interestedIds instanceof Array)
|
||||||
|| !body.interestedIds.every(id => typeof id === "string")
|
|| !body.interestedIds.every(id => typeof id === "string")
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue