Skip to content

Commit 7ce492a

Browse files
committed
Fix silly catch
1 parent 5d45353 commit 7ce492a

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

src/stores/store.ts

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,8 @@ export const useStore = defineStore('store', () => {
136136
try {
137137
await notificationApiMutex.runExclusive(() => pAll(
138138
checkedThreads.map(thread => async () => {
139-
try {
140-
await markNotificationAsRead(thread.id, accessToken)
141-
deletedThreads.push(thread.id)
142-
}
143-
catch (error) {
144-
console.error(error)
145-
}
139+
await markNotificationAsRead(thread.id, accessToken)
140+
deletedThreads.push(thread.id)
146141
}),
147142
{
148143
stopOnError: false,
@@ -170,13 +165,8 @@ export const useStore = defineStore('store', () => {
170165
try {
171166
await notificationApiMutex.runExclusive(() => pAll(
172167
checkedThreads.map(thread => async () => {
173-
try {
174-
await unsubscribeNotification(thread.id, accessToken)
175-
deletedThreads.push(thread.id)
176-
}
177-
catch (error) {
178-
console.error(error)
179-
}
168+
await unsubscribeNotification(thread.id, accessToken)
169+
deletedThreads.push(thread.id)
180170
}),
181171
{
182172
stopOnError: false,

0 commit comments

Comments
 (0)