Ack all notifications if read all is clicked

This commit is contained in:
Johannes Zellner
2025-03-18 16:58:00 +01:00
parent 0fe5d9d628
commit f6f97e69eb

View File

@@ -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);