mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-06 02:51:28 +03:00
Merge branch 'master' of https://github.com/Tzahi12345/YoutubeDL-Material into desktop-app
This commit is contained in:
@@ -2035,7 +2035,7 @@ app.post('/api/changeRolePermissions', optionalJwt, async (req, res) => {
|
|||||||
// notifications
|
// notifications
|
||||||
|
|
||||||
app.post('/api/getNotifications', optionalJwt, async (req, res) => {
|
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});
|
const notifications = await db_api.getRecords('notifications', {user_uid: uuid});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user