File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/timeline/services/foryou/canditate-sources Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ export class InterestsCandidateSource {
115115 . setParameters ( cte_query . getParameters ( ) )
116116 . setParameter ( 'user_id' , user_id )
117117 . orderBy ( 'ranked.post_date' , 'DESC' )
118- . addOrderBy ( 'ranked.tweet_id ' , 'DESC' )
118+ . addOrderBy ( 'ranked.id ' , 'DESC' )
119119 . limit ( limit ) ;
120120
121121 query = this . tweet_repository . attachUserInteractionBooleanFlags (
@@ -202,7 +202,7 @@ export class InterestsCandidateSource {
202202 . setParameter ( 'user_id' , user_id )
203203 . orderBy ( 'RANDOM()' )
204204 . addOrderBy ( 'ranked.post_date' , 'DESC' )
205- . addOrderBy ( 'ranked.tweet_id ' , 'DESC' )
205+ . addOrderBy ( 'ranked.id ' , 'DESC' )
206206 . limit ( limit ) ;
207207
208208 query = this . tweet_repository . attachUserInteractionBooleanFlags (
You can’t perform that action at this time.
0 commit comments