diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-01-18 05:28:12 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-01-18 05:28:12 +0900 |
| commit | 8b95a1ef5dbf0583d5f46735f90bed362191e0a7 (patch) | |
| tree | 35324c7582a6d332d5d4d252ca806a09931084e3 /src/api/common | |
| parent | test (diff) | |
| download | sharkey-8b95a1ef5dbf0583d5f46735f90bed362191e0a7.tar.gz sharkey-8b95a1ef5dbf0583d5f46735f90bed362191e0a7.tar.bz2 sharkey-8b95a1ef5dbf0583d5f46735f90bed362191e0a7.zip | |
Fix bug
Diffstat (limited to 'src/api/common')
| -rw-r--r-- | src/api/common/notify.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/api/common/notify.ts b/src/api/common/notify.ts index c4c94ee704..9152b85cdb 100644 --- a/src/api/common/notify.ts +++ b/src/api/common/notify.ts @@ -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 |