Skip to content

Commit

Permalink
feat: add sorting to get last run id
Browse files Browse the repository at this point in the history
  • Loading branch information
gianluca-mangiapelo-deltatre authored and gianlucamangiapelo committed Mar 16, 2023
1 parent 4d171d9 commit 299898c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/services/azure/testRun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,6 @@ export async function getLastTestRunId(
throw new Error()
}

testRun.sort((a, b) => a.id - b.id)
return testRun[testRun.length - 1].id
}

0 comments on commit 299898c

Please sign in to comment.