diff options
| author | otofune <otofune@gmail.com> | 2017-11-06 15:58:39 +0900 |
|---|---|---|
| committer | otofune <otofune@gmail.com> | 2017-11-06 15:58:39 +0900 |
| commit | b50813649afed671b75189551342b179d8cd60f7 (patch) | |
| tree | c0b13f922a5b34cb713749b09869acd6057f706e /src/api | |
| parent | api - endpoint:timeline: unneed promise wrapping (diff) | |
| download | sharkey-b50813649afed671b75189551342b179d8cd60f7.tar.gz sharkey-b50813649afed671b75189551342b179d8cd60f7.tar.bz2 sharkey-b50813649afed671b75189551342b179d8cd60f7.zip | |
serializers - posts: fix awaiting
Diffstat (limited to 'src/api')
| -rw-r--r-- | src/api/serializers/post.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/serializers/post.ts b/src/api/serializers/post.ts index d1dcb66002..5788b226f4 100644 --- a/src/api/serializers/post.ts +++ b/src/api/serializers/post.ts @@ -94,7 +94,7 @@ const self = async ( if (opts.detail) { // Get previous post info _post.prev = (async () => { - const prev = Post.findOne({ + const prev = await Post.findOne({ user_id: _post.user_id, _id: { $lt: id |