Update read.ts
This commit is contained in:
parent
5b5b3fd873
commit
c71ffa91a9
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue