Update website fetch and update.

This commit is contained in:
Mike Cao committed 2022-11-02 15:45:47 -07:00
1 parent 05245ca316
commit 1075325ec5
5 files changed
+27 -59

No files matched your search

+1 -1
View File
@@ -43,7 +43,7 @@ export function isValidToken(token, validation) {
export async function allowQuery(req, type) {
const { id } = req.query;
const { userId, isAdmin, shareToken } = req.auth ?? {};
const { id: userId, isAdmin, shareToken } = req.auth ?? {};
if (isAdmin) {
return true;