Public feed post query fix (ORDER BY DESC).

This commit is contained in:
Alexey Skobkin 2017-11-05 00:46:54 +03:00
parent b8668c66ce
commit 53ac59e032

View file

@ -42,6 +42,7 @@ class PostRepository extends EntityRepository
->leftJoin('p.files', 'pf') ->leftJoin('p.files', 'pf')
->where('p.private = FALSE') ->where('p.private = FALSE')
->andWhere('pa.public = TRUE') ->andWhere('pa.public = TRUE')
->orderBy('p.createdAt', 'desc')
; ;
} }
} }