[core] NOWEB - fix ordering - timestamp first
This commit is contained in:
1 parent
f066f982bf
commit
45ae263ab9
1 file changed
+1
-1
@@ -31,7 +31,7 @@ export class SqlChatMethods {
|
||||
.select(
|
||||
'annotated_chats.*',
|
||||
knex.raw(
|
||||
'ROW_NUMBER() OVER (PARTITION BY annotated_chats.primary_jid ORDER BY annotated_chats.primary_priority ASC, annotated_chats."conversationTimestamp" DESC) as __rownum',
|
||||
'ROW_NUMBER() OVER (PARTITION BY annotated_chats.primary_jid ORDER BY annotated_chats."conversationTimestamp" DESC, annotated_chats.primary_priority ASC) as __rownum',
|
||||
),
|
||||
)
|
||||
.from(annotatedQuery)
|
||||
|
||||
Reference in new issue
Block a user