@@ -142,6 +142,7 @@ getPostsForUserLimitingQ :: Word64 -> Query Schema (TuplePG (Only UserId)) (RowP
142getPostsForUserLimitingQ lim = select (#postRowId `as` #fromOnly) $
142getPostsForUserLimitingQ lim = select (#postRowId `as` #fromOnly) $
143 (from $ table #posts) &
143 (from $ table #posts) &
144 where_ (#postRowAuthorId .== param @1) &
144 where_ (#postRowAuthorId .== param @1) &
145+ orderBy [#postRowId & Desc] &
145 limit lim
146 limit lim
147getPostsForUser :: Word64 -> UserId -> StaticPQ [Post]
148getPostsForUser :: Word64 -> UserId -> StaticPQ [Post]