|
|
@@ -15,15 +15,15 @@ exports.isAdmin = email => config.ADMIN_EMAILS.includes(email);
|
|
|
exports.getStatsCacheTime = total => {
|
|
|
switch (true) {
|
|
|
case total > 5000 && total < 20000:
|
|
|
- return ms('1 hour');
|
|
|
+ return ms('1 hour') / 1000;
|
|
|
|
|
|
case total < 40000:
|
|
|
- return ms('3 hours');
|
|
|
+ return ms('3 hours') / 1000;
|
|
|
|
|
|
case total > 40000:
|
|
|
- return ms('6 hours');
|
|
|
+ return ms('6 hours') / 1000;
|
|
|
|
|
|
default:
|
|
|
- return ms('15 minutes');
|
|
|
+ return ms('15 minutes') / 1000;
|
|
|
}
|
|
|
};
|