Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
fix: repo stat for string values
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro Santos committed Nov 8, 2019
1 parent 4acd43e commit 4c0889c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/repo/stat.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ const Big = require('bignumber.js')

const transform = function (res, callback) {
callback(null, {
numObjects: new Big(res.NumObjects),
repoSize: new Big(res.RepoSize),
numObjects: res.NumObjects,
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)
})
}

Expand Down

0 comments on commit 4c0889c

Please sign in to comment.