fix auth, add pg extension (#1596)

This commit is contained in:
Brian Cao 2022-10-25 10:27:43 -07:00 committed by GitHub
parent 994cf950c8
commit ebf439c598
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View file

@ -49,7 +49,7 @@ export async function allowQuery(req) {
}
if (userId) {
const website = await getWebsite({ id });
const website = await getWebsite({ websiteUuid: id });
return website && website.userId === userId;
}