Fixed authentication error in notifications (2)

pull/876/head
Tzahi12345 3 years ago
parent 6400b807c2
commit 770916492e

@ -2031,7 +2031,7 @@ app.post('/api/changeRolePermissions', optionalJwt, async (req, res) => {
// notifications
app.post('/api/getNotifications', optionalJwt, async (req, res) => {
const uuid = req.user.uid;
const uuid = req.isAuthenticated() ? req.user.uid : null;
const notifications = await db_api.getRecords('notifications', {user_uid: uuid});

Loading…
Cancel
Save