mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 08:33:08 +02:00
serializers - posts: fix awaiting
This commit is contained in:
parent
7b1fc2c5d6
commit
b50813649a
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ const self = async (
|
||||||
if (opts.detail) {
|
if (opts.detail) {
|
||||||
// Get previous post info
|
// Get previous post info
|
||||||
_post.prev = (async () => {
|
_post.prev = (async () => {
|
||||||
const prev = Post.findOne({
|
const prev = await Post.findOne({
|
||||||
user_id: _post.user_id,
|
user_id: _post.user_id,
|
||||||
_id: {
|
_id: {
|
||||||
$lt: id
|
$lt: id
|
||||||
|
|
Loading…
Reference in a new issue