Commit d77fa236 authored by Przemyslaw Kaminski's avatar Przemyslaw Kaminski

[nodeStory] fix version ordering

parent df6bda79
Pipeline #3168 canceled with stage
...@@ -365,7 +365,7 @@ getNodeArchiveHistory c nodeId = do ...@@ -365,7 +365,7 @@ getNodeArchiveHistory c nodeId = do
FROM node_story_archive_history FROM node_story_archive_history
JOIN ngrams ON ngrams.id = ngrams_id JOIN ngrams ON ngrams.id = ngrams_id
WHERE node_id = ? WHERE node_id = ?
ORDER BY version DESC |] ORDER BY (version, node_story_archive_history.id) DESC |]
ngramsIdQuery :: PGS.Query ngramsIdQuery :: PGS.Query
ngramsIdQuery = [sql| SELECT id FROM ngrams WHERE terms = ? |] ngramsIdQuery = [sql| SELECT id FROM ngrams WHERE terms = ? |]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment