Skip to content

Commit 1246022

Browse files
committed
fix: return code 404 when cannot find calendar for deleting
1 parent 241a321 commit 1246022

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/UserMeetingSettingsService.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ async function deleteUserCalendar (currentUser, reqParams) {
282282
(calendarItem) => calendarItem.id === reqParams.calendarId
283283
) === -1
284284
) {
285-
throw new Error('Calendar not found in UserMeetingSettings record.')
285+
throw new errors.NotFoundError('Calendar not found in UserMeetingSettings record.')
286286
} else {
287287
let deletingPrimaryCalendar
288288

0 commit comments

Comments
 (0)