Fixed account lookup.

This commit is contained in:
Mike Cao 2022-10-25 11:01:28 -07:00
parent 2ad5cd9335
commit 46a18f2918

View File

@ -56,7 +56,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;
}
}