Skip to content

Commit

Permalink
Fixed account lookup.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecao authored and dannyhines committed Nov 9, 2022
1 parent 65b0888 commit ea70e03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/auth.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export async function allowQuery(req, type) {
} else if (type === TYPE_ACCOUNT) {
const account = await getAccount({ accountUuid: id });

return account && account.id === id;
return account && account.accountUuid === id;
}
}

Expand Down

0 comments on commit ea70e03

Please sign in to comment.