Ack all notifications if read all is clicked
This commit is contained in:
@@ -29,7 +29,7 @@ async function onMarkNotificationRead(notification) {
|
||||
async function onMarkAllNotificationRead() {
|
||||
notificationsAllBusy.value = true;
|
||||
|
||||
await eachLimit(notifications.value.slice(4), 2, async (notification) => {
|
||||
await eachLimit(notifications.value, 2, async (notification) => {
|
||||
notification.busy = true;
|
||||
const [error] = await notificationModel.update(notification.id, true);
|
||||
if (error) return console.error(error);
|
||||
|
||||
Reference in New Issue
Block a user