DataONEorg / bookkeeper

Bookkeeper keeps track of DataONE product subscriptions and quotas for researchers using the extended services.
Other
1 stars 2 forks source link

Rename Quota.usage to Quota.totalUsage #53

Closed csjx closed 4 years ago

csjx commented 4 years ago

Discussing this, usage was confusing because of the usages collection, so rename this totalUsage.

csjx commented 4 years ago

Also, when refactoring Quota.getUsage() to Quota.getTotalUsage(), initialize the result to 0 and if there is a null result, return 0 instead. This makes downstream processing easier.

gothub commented 4 years ago

Fixed in commits: