Skip to content

Commit

Permalink
fix(afdian): read exechangeRate from env (antfu-collective#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt authored Sep 18, 2023
1 parent 32a7217 commit 3c2c2fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export function loadEnv(): Partial<SponsorkitConfig> {
afdian: {
userId: process.env.SPONSORKIT_AFDIAN_USER_ID || process.env.AFDIAN_USER_ID,
token: process.env.SPONSORKIT_AFDIAN_TOKEN || process.env.AFDIAN_TOKEN,
exechangeRate: Number.parseFloat(process.env.SPONSORKIT_AFDIAN_EXECHANGERATE || process.env.AFDIAN_EXECHANGERATE) || undefined,
},
outputDir: process.env.SPONSORKIT_DIR,
}
Expand Down

0 comments on commit 3c2c2fd

Please sign in to comment.