From c71ffa91a949e6dd1c56e8a1e07a792f9bb47a48 Mon Sep 17 00:00:00 2001 From: tamaina Date: Fri, 12 Nov 2021 00:07:06 +0900 Subject: [PATCH] Update read.ts --- src/server/api/endpoints/notifications/read.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/server/api/endpoints/notifications/read.ts b/src/server/api/endpoints/notifications/read.ts index a64b1b5acb..c2c6c439a9 100644 --- a/src/server/api/endpoints/notifications/read.ts +++ b/src/server/api/endpoints/notifications/read.ts @@ -49,9 +49,5 @@ export default define(meta, async (ps, user) => { if (ps.notificationId) notificationIds.push(ps.notificationId); if (ps.notificationIds) notificationIds = notificationIds.concat(ps.notificationIds); - if (notificationIds.length === 0) { - throw new ApiError(meta.errors.noNotificationRequested); - } - return readNotification(user.id, notificationIds); });