From 40c25f8990718698c72802ef8d4975dcad2bb7bb Mon Sep 17 00:00:00 2001 From: Hornwitser Date: Sun, 9 Mar 2025 23:56:39 +0100 Subject: [PATCH] Fix logic inversion braking interested --- server/api/account.patch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") )