mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-08 13:01:29 +03:00
Notifications style improvements
This commit is contained in:
@@ -2009,10 +2009,9 @@ app.post('/api/getNotifications', optionalJwt, async (req, res) => {
|
||||
|
||||
// set notifications to read
|
||||
app.post('/api/setNotificationsToRead', optionalJwt, async (req, res) => {
|
||||
const uids = req.body.uids;
|
||||
const uuid = req.user.uid;
|
||||
|
||||
// TODO: do a bulk update
|
||||
const success = true; // await db_api.updateRecords('notifications', {user_uid: uuid});
|
||||
const success = await db_api.updateRecords('notifications', {user_uid: uuid}, {read: true});
|
||||
|
||||
res.send({success: success});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user