From fdf70d96888e261b8ab915c2574d8b881b017420 Mon Sep 17 00:00:00 2001 From: Pedro Santos Date: Thu, 7 Nov 2019 16:31:41 +0000 Subject: [PATCH] fix: repo stat for string values --- src/repo/stat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/repo/stat.js b/src/repo/stat.js index 2b922de03..6ecc07a73 100644 --- a/src/repo/stat.js +++ b/src/repo/stat.js @@ -6,10 +6,10 @@ const Big = require('bignumber.js') const transform = function (res, callback) { callback(null, { numObjects: new Big(res.NumObjects), - repoSize: new Big(res.RepoSize), + repoSize: isNaN(res.RepoSize) ? res.RepoSize : new Big(res.RepoSize), repoPath: res.RepoPath, version: res.Version, - storageMax: new Big(res.StorageMax) + storageMax: isNaN(res.StorageMax) ? res.StorageMax : new Big(res.StorageMax) }) }