Updated date range handling. Fixed share page.

This commit is contained in:
Mike Cao committed 2023-03-08 16:37:43 -08:00
1 parent 3fc5f5151b
commit 696d9c978c
28 files changed
+166 -280

No files matched your search

+3 -1
View File
@@ -44,7 +44,9 @@ export const useAuth = createMiddleware(async (req, res, next) => {
user = await redis.get(authKey);
}
log({ token, payload, user, shareToken });
if (process.env.NODE_ENV === 'development') {
log({ token, shareToken, payload, user });
}
if (!user?.id && !shareToken) {
log('useAuth: User not authorized');