mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: dont show decimails on auto approva minutes
This commit is contained in:
@@ -128,7 +128,7 @@ async function addToApprovalQueue(req, userData) {
|
|||||||
if (meta.config.showAverageApprovalTime) {
|
if (meta.config.showAverageApprovalTime) {
|
||||||
const average_time = await db.getObjectField('registration:queue:approval:times', 'average');
|
const average_time = await db.getObjectField('registration:queue:approval:times', 'average');
|
||||||
if (average_time > 0) {
|
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) {
|
if (meta.config.autoApproveTime > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user