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));