Skip to content

Commit

Permalink
Merge pull request #107 from TosiDrop/GH-105
Browse files Browse the repository at this point in the history
fix: ensure boolean feature flags are boolean - closes #105
  • Loading branch information
reqlez authored May 7, 2022
2 parents 2747303 + eef86ca commit 438ea78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,8 +141,8 @@ app.get("/healthz", async (req: any, res: any) => {

app.get("/features", (req: any, res: any) => {
res.status(200).json({
airdrop_enabled: AIRDROP_ENABLED,
claim_enabled: CLAIM_ENABLED,
airdrop_enabled: (typeof AIRDROP_ENABLED == "string")? JSON.parse(AIRDROP_ENABLED.toLowerCase()): AIRDROP_ENABLED,
claim_enabled: (typeof CLAIM_ENABLED == "string")? JSON.parse(CLAIM_ENABLED.toLowerCase()): CLAIM_ENABLED,
network: CARDANO_NETWORK,
});
});
Expand Down

0 comments on commit 438ea78

Please sign in to comment.