Browse Source

fix calc typo

master
ry 2 years ago
parent
commit
1bc9985dec
  1. 8
      utils/src/calc.js

8
utils/src/calc.js

@ -1,5 +1,5 @@
module.exports = {
userDays: function(user) {
userDays: function (user) {
if (typeof user !== "object") throw new TypeError("Not an Object");
let creation = new Date().getTime() - user.createdAt.getTime();
@ -8,8 +8,8 @@ module.exports = {
return Math.round(days);
},
serverDays: function(server) {
if (typeof user !== "object") throw new TypeError("Not an Object");
serverDays: function (server) {
if (typeof server !== "object") throw new TypeError("Not an Object");
let creation = new Date().getTime() - server.createdAt.getTime();
@ -17,4 +17,4 @@ module.exports = {
return Math.round(days);
}
};
};
Loading…
Cancel
Save