fix auth, add pg extension

This commit is contained in:
Brian Cao 2022-10-25 10:25:27 -07:00
parent 994cf950c8
commit b6a2058e51
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;
}