Skip to content

Commit

Permalink
Merge pull request #1900 from statisticsnorway/MIMIR-1751-fix-bug-sor…
Browse files Browse the repository at this point in the history
…ting-child-event

MIMIR-1751:Fixed bug with sorting of child eventrepo
  • Loading branch information
omsaggau authored May 12, 2023
2 parents 35b1835 + 8b08ee9 commit 45f870e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/resources/lib/ssb/repo/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,12 +100,14 @@ export function getChildNodes(
branch: string,
key: string,
count = 10,
countOnly = false
countOnly = false,
childOrder = '_ts DESC'
): NodeQueryResponse {
return withConnection(repository, branch, (conn) => {
return conn.findChildren({
parentKey: key,
count,
childOrder,
countOnly,
})
})
Expand Down

0 comments on commit 45f870e

Please sign in to comment.