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"; }