mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 14:07:38 -07:00
Fix bug
This commit is contained in:
parent
71b4456d8d
commit
064311222a
1 changed files with 1 additions and 3 deletions
|
@ -14,7 +14,7 @@ export default (
|
|||
}
|
||||
|
||||
// Create notification
|
||||
const res = await Notification.insert(Object.assign({
|
||||
const notification = await Notification.insert(Object.assign({
|
||||
created_at: new Date(),
|
||||
notifiee_id: notifiee,
|
||||
notifier_id: notifier,
|
||||
|
@ -22,8 +22,6 @@ export default (
|
|||
is_read: false
|
||||
}, content));
|
||||
|
||||
const notification = res.ops[0];
|
||||
|
||||
resolve(notification);
|
||||
|
||||
// Publish notification event
|
||||
|
|
Loading…
Reference in a new issue