Skip to content

Commit

Permalink
Fix provider endpoint sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
Redm4x committed Dec 8, 2023
1 parent b837f89 commit 35bdc26
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cloudmos-api",
"version": "2.11.0",
"version": "2.11.1",
"description": "Api providing data to the deploy tool",
"author": "Cloudmos",
"license": "Apache-2.0",
Expand Down
3 changes: 2 additions & 1 deletion api/src/db/deploymentProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,8 @@ export async function getProviderDeployments(provider: string, skip: number, lim
},
{ model: Block, required: true, as: "createdBlock" },
{ model: Block, required: false, as: "closedBlock" }
]
],
order: [["createdHeight", "DESC"]]
});

return deployments.map((d) => ({
Expand Down

0 comments on commit 35bdc26

Please sign in to comment.