This commit is contained in:
parent
26ed624cd4
commit
1cd67da1a1
|
@ -43,10 +43,6 @@ const paramDef = {
|
||||||
|
|
||||||
// eslint-disable-next-line import/no-default-export
|
// eslint-disable-next-line import/no-default-export
|
||||||
export default define(meta, paramDef, async (ps, user) => {
|
export default define(meta, paramDef, async (ps, user) => {
|
||||||
let notificationIds = [] as string[];
|
if ('notificationId' in ps) return readNotification(user.id, [ps.notificationId]);
|
||||||
|
return readNotification(user.id, ps.notificationIds);
|
||||||
if (ps.notificationId) notificationIds.push(ps.notificationId);
|
|
||||||
if (ps.notificationIds) notificationIds = notificationIds.concat(ps.notificationIds);
|
|
||||||
|
|
||||||
return readNotification(user.id, notificationIds);
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue