forked from mirror/misskey
Fix bug
This commit is contained in:
parent
eb235a4a17
commit
8b95a1ef5d
@ -14,7 +14,7 @@ export default (
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create notification
|
// Create notification
|
||||||
const res = await Notification.insert(Object.assign({
|
const notification = await Notification.insert(Object.assign({
|
||||||
created_at: new Date(),
|
created_at: new Date(),
|
||||||
notifiee_id: notifiee,
|
notifiee_id: notifiee,
|
||||||
notifier_id: notifier,
|
notifier_id: notifier,
|
||||||
@ -22,8 +22,6 @@ export default (
|
|||||||
is_read: false
|
is_read: false
|
||||||
}, content));
|
}, content));
|
||||||
|
|
||||||
const notification = res.ops[0];
|
|
||||||
|
|
||||||
resolve(notification);
|
resolve(notification);
|
||||||
|
|
||||||
// Publish notification event
|
// Publish notification event
|
||||||
|
Loading…
Reference in New Issue
Block a user