fix: dont show decimails on auto approva minutes

isekai-main
Barış Soner Uşaklı 3 years ago
parent e954ca1025
commit a0df389021

@ -128,7 +128,7 @@ async function addToApprovalQueue(req, userData) {
if (meta.config.showAverageApprovalTime) {
const average_time = await db.getObjectField('registration:queue:approval:times', 'average');
if (average_time > 0) {
message += ` [[register:registration-queue-average-time, ${Math.floor(average_time / 60)}, ${average_time % 60}]]`;
message += ` [[register:registration-queue-average-time, ${Math.floor(average_time / 60)}, ${Math.floor(average_time % 60)}]]`;
}
}
if (meta.config.autoApproveTime > 0) {

Loading…
Cancel
Save