Skip to content

Commit

Permalink
Fix provider active lease graph + Bump api version
Browse files Browse the repository at this point in the history
  • Loading branch information
Redm4x committed Feb 14, 2024
1 parent 9f84ac9 commit d275abb
Show file tree
Hide file tree
Showing 3 changed files with 4 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.14.4",
"version": "2.14.5",
"description": "Api providing data to the deploy tool",
"author": "Cloudmos",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion api/src/services/db/statsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export const getProviderActiveLeasesGraphData = async (providerAddress: string)
`SELECT "date" AS date, COUNT(l."id") AS count
FROM "day" d
LEFT JOIN "lease" l
ON l."providerAddress" = ':providerAddress'
ON l."providerAddress" = :providerAddress
AND l."createdHeight" <= d."lastBlockHeightYet"
AND (l."closedHeight" IS NULL OR l."closedHeight" > d."lastBlockHeightYet")
AND (l."predictedClosedHeight" IS NULL OR l."predictedClosedHeight" > d."lastBlockHeightYet")
Expand Down

0 comments on commit d275abb

Please sign in to comment.