Skip to content

Commit

Permalink
Fix limit for multi-lease deployments
Browse files Browse the repository at this point in the history
  • Loading branch information
Redm4x committed Dec 8, 2023
1 parent 968542d commit bbfa6ab
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions api/src/db/deploymentProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,11 @@ export async function getProviderDeployments(provider: string, skip: number, lim
}

const deploymentDseqs = await Deployment.findAll({
attributes: ["dseq"],
include: [{ model: Lease, required: true, where: leaseFilter }],
attributes: ["dseq", "createdHeight"],
include: [{ model: Lease, attributes: [], required: true, where: leaseFilter }],
order: [["createdHeight", "DESC"]],
offset: skip,
limit: limit,
subQuery: false
limit: limit
});

const deployments = await Deployment.findAll({
Expand Down

0 comments on commit bbfa6ab

Please sign in to comment.