Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
style: remove debug print
Browse files Browse the repository at this point in the history
  • Loading branch information
tassiluca committed Jan 29, 2024
1 parent d8ea483 commit d9be1be
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions frontend/src/stores/notificationsStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,12 @@ export const useNotificationsStore = defineStore('notifications', () => {
body: n.text,
new: !n.isRead
}));
console.debug(notifications.value);
unreadNotifications.value = notifications.value!.filter((n: any) => n.new).length;
}

async function readNotifications() {
console.debug(notifications.value)
const newNotifications = notifications.value?.filter((n: Notification) => n.new);
console.debug(newNotifications)
for (const n1 of newNotifications) {
console.debug(`Marking notification ${n1.id} as read...`)
await axios.put(`${apiEndpoints.API_SERVER}/notifications/${n1.id}`)
.then(() => unreadNotifications.value--)
.catch((error) => console.error(error));
Expand Down

0 comments on commit d9be1be

Please sign in to comment.