mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 01:18:27 +00:00
api/match: limit the duration limit number to 2 decimal places
This commit is contained in:
parent
c392864c82
commit
0b36aa09a7
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user