From 9334cbbaa36fc9edcd39a2380ead3bcd8f0f132e Mon Sep 17 00:00:00 2001 From: tdurieux Date: Fri, 19 Mar 2021 13:31:34 +0100 Subject: [PATCH] fix getStats --- utils/file.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/file.js b/utils/file.js index 8a5dbcf..97b2bc6 100644 --- a/utils/file.js +++ b/utils/file.js @@ -460,7 +460,7 @@ module.exports.getStats = async (options) => { if (repoConfig == null) { throw "repo_not_found"; } - if (repoConfig.mode != "download") { + if (repoConfig.options.mode != "download") { throw "stats_unsupported"; }