Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:

cache-purge:
name: "Purge branch Actions cache"
needs: staging-deploy
needs: production-deploy
runs-on: ubuntu-latest

steps:
Expand Down
2 changes: 1 addition & 1 deletion src/handlers/circulatingSupply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getCirculatingSupply } from '../helpers/circulating';
export async function handler(request: Request): Promise<Response> {
try {
let circulating_supply = await getCirculatingSupply();
return new Response(circulating_supply.toString());
return new Response(circulating_supply);
}
catch (err: any) {
console.log(err);
Expand Down
3 changes: 2 additions & 1 deletion src/helpers/circulating.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ export async function getCirculatingSupply(): Promise<number> {
console.log('Total supply', total_supply);
console.log(`Watchlist total balance: ${shareholders_total_balance}`);

return total_supply - shareholders_total_balance;
let circulating_supply = total_supply - shareholders_total_balance;
return circulating_supply.toString();
} catch (e: any) {
throw new Error(e.toString);
}
Expand Down
4 changes: 2 additions & 2 deletions wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ MARKET_MONITORING_API = "https://market-monitoring.cheqd.net"
# Run `echo <VALUE> | wrangler secret put <NAME>` for each of these

[triggers]
crons = ["0/2 * * * *"]
crons = [ "0 */2 * * *" ]

###############################################################
### SECTION 3: Local Development ###
Expand Down Expand Up @@ -106,7 +106,7 @@ kv_namespaces = [

# Cron triggers for staging worker
[env.staging.triggers]
crons = [ "0 * * * *"]
crons = [ "0 */2 * * *" ]

###############################################################
### OPTIONAL: Build Configuration ###
Expand Down