mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2025-01-10 15:40:57 -07:00
serializers - posts: fix awaiting
This commit is contained in:
parent
8dc272beba
commit
c46f6db19c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue