From 0b36aa09a7e2af02650a46efe2d3156636e33d5b Mon Sep 17 00:00:00 2001 From: wukko Date: Tue, 27 May 2025 17:10:41 +0600 Subject: [PATCH] api/match: limit the duration limit number to 2 decimal places --- api/src/processing/match.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/processing/match.js b/api/src/processing/match.js index d97c7f0f..65a021b0 100644 --- a/api/src/processing/match.js +++ b/api/src/processing/match.js @@ -271,7 +271,7 @@ export default async function({ host, patternMatch, params, isSession }) { switch(r.error) { case "content.too_long": context = { - limit: env.durationLimit / 60, + limit: parseFloat((env.durationLimit / 60).toFixed(2)), } break;