Skip to content

Commit 6c203f5

Browse files
committed
feat: move to async fs
1 parent 5b8e528 commit 6c203f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/calculator/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -261,21 +261,21 @@ export default class Calculator {
261261
async estimateMatching(
262262
potentialVotes: Contribution[]
263263
): Promise<MatchingEstimateResult> {
264-
const votes = this.parseJSONFile<Vote>(
264+
const votes = await this.parseJSONFile<Vote>(
265265
"votes",
266266
`${this.chainId}/rounds/${this.roundId}/votes.json`
267267
);
268-
const applications = this.parseJSONFile<Application>(
268+
const applications = await this.parseJSONFile<Application>(
269269
"applications",
270270
`${this.chainId}/rounds/${this.roundId}/applications.json`
271271
);
272272

273-
const rounds = this.parseJSONFile<Round>(
273+
const rounds = await this.parseJSONFile<Round>(
274274
"rounds",
275275
`${this.chainId}/rounds.json`
276276
);
277277

278-
const passportScores = this.parseJSONFile<PassportScore>(
278+
const passportScores = await this.parseJSONFile<PassportScore>(
279279
"passport scores",
280280
"passport_scores.json"
281281
);

0 commit comments

Comments
 (0)