Update read.ts

This commit is contained in:
tamaina 2021-11-12 00:07:06 +09:00 committed by GitHub
parent 5b5b3fd873
commit c71ffa91a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -49,9 +49,5 @@ export default define(meta, async (ps, user) => {
if (ps.notificationId) notificationIds.push(ps.notificationId); if (ps.notificationId) notificationIds.push(ps.notificationId);
if (ps.notificationIds) notificationIds = notificationIds.concat(ps.notificationIds); if (ps.notificationIds) notificationIds = notificationIds.concat(ps.notificationIds);
if (notificationIds.length === 0) {
throw new ApiError(meta.errors.noNotificationRequested);
}
return readNotification(user.id, notificationIds); return readNotification(user.id, notificationIds);
}); });