Skip to content

Node.js based forum software built for the modern web

fix: dont show decimails on auto approva minutes

Barış Soner Uşaklıa0df38902179
diff --git a/src/controllers/authentication.js b/src/controllers/authentication.js
index b2ca8e056e..d0c066056d 100644
--- a/src/controllers/authentication.js
+++ b/src/controllers/authentication.js
@@ -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) {