mirror of
https://github.com/imputnet/cobalt.git
synced 2026-11-01 23:34:57 +00:00
api/match: limit the duration limit number to 2 decimal places
This commit is contained in:
parent
c392864c82
commit
0b36aa09a7
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue