From d87d801475884f7da8acc3806cf788fc93c48c39 Mon Sep 17 00:00:00 2001 From: Regalijan <72576136+Regalijan@users.noreply.github.com> Date: Mon, 23 Oct 2023 20:15:39 -0400 Subject: [PATCH] why --- functions/api/me/items/[type]/[id].ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/api/me/items/[type]/[id].ts b/functions/api/me/items/[type]/[id].ts index f263b32..c8acb93 100644 --- a/functions/api/me/items/[type]/[id].ts +++ b/functions/api/me/items/[type]/[id].ts @@ -63,7 +63,7 @@ export async function onRequestGet(context: RequestContext) { data.resolved_attachments = resolvedUrls; } - if (!data?.user?.id !== context.data.current_user.id) + if (data?.user?.id !== context.data.current_user.id) return jsonError("Item does not exist", 404); return jsonResponse(JSON.stringify(data));