diff --git a/server/api/account.patch.ts b/server/api/account.patch.ts index 9059d6f..afccc5d 100644 --- a/server/api/account.patch.ts +++ b/server/api/account.patch.ts @@ -7,7 +7,7 @@ export default defineEventHandler(async (event) => { const body: Pick = await readBody(event); if ( body.interestedIds !== undefined - && !( + && ( !(body.interestedIds instanceof Array) || !body.interestedIds.every(id => typeof id === "string") )