Update read.ts

This commit is contained in:
tamaina
2021-11-12 00:07:06 +09:00
committed by GitHub
parent 5b5b3fd873
commit c71ffa91a9

View File

@@ -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);
});