1
0
Fork 0
mirror of https://github.com/paricafe/misskey.git synced 2025-04-01 09:09:29 -05:00

serializers - posts: fix awaiting

This commit is contained in:
otofune 2017-11-06 15:58:39 +09:00
parent 7b1fc2c5d6
commit b50813649a

View file

@ -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