Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
why
  • Loading branch information
Regalijan authored and Regalijan committed Oct 24, 2023
1 parent cfdbc68 commit d87d801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/api/me/items/[type]/[id].ts
Expand Up @@ -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));
Expand Down

0 comments on commit d87d801

Please sign in to comment.