Skip to content

Commit

Permalink
Merge pull request #226 from bnb-chain/feat/tokenApi1216
Browse files Browse the repository at this point in the history
feat: Add cache time to server
  • Loading branch information
wenty22 authored Dec 27, 2024
2 parents 2b302d4 + 2cfa824 commit a001c71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class TokenSchedule implements OnModuleInit {
private tokensService: TokenService,
) {}

@Cron(CronExpression.EVERY_HOUR)
@Cron(CronExpression.EVERY_DAY_AT_MIDNIGHT)
async syncCmcTokens() {
this.logger.log('syncCmcTokens');
await this.syncToken.add(
Expand Down
2 changes: 2 additions & 0 deletions apps/canonical-bridge-server/src/shared/web3/web3.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,12 @@ export class Web3Service {
}

async getTransferConfigsForAll() {
this.logger.log(`[fetchCBridge] start, ${counter}`);
const { data } = await this.httpService.axiosRef.get<ITransferConfigsForAll>(
`${CBRIDGE_ENDPOINT}/v2/getTransferConfigsForAll${counter === 0 ? '' : '222222'}`,
);
counter += 1;
this.logger.log(`[fetchCBridge] end, ${counter}`);
return data;
}

Expand Down

0 comments on commit a001c71

Please sign in to comment.