api/match: limit the duration limit number to 2 decimal places

This commit is contained in:
wukko
2025-05-27 17:10:41 +06:00
parent c392864c82
commit 0b36aa09a7

View File

@ -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;