fix getStats

This commit is contained in:
tdurieux
2021-03-19 13:31:34 +01:00
parent 72715dfcd9
commit 9334cbbaa3

View File

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