Skip to content

Commit

Permalink
added caching for market data in getDeployment
Browse files Browse the repository at this point in the history
  • Loading branch information
baktun14 committed Aug 31, 2023
1 parent 13433e4 commit 9fdc4e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/providers/apiNodeProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ export async function getDeployment(owner: string, dseq: string) {
include: [{ model: ProviderAttribute }]
});

const marketData = await getMarketData();
const marketData = await cacheResponse(60 * 5, cacheKeys.getMarketData, getMarketData);
const aktPrice = marketData?.price;
const deploymentDenom = deploymentData.escrow_account.balance.denom;

Expand Down

0 comments on commit 9fdc4e6

Please sign in to comment.