mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-13 05:37:44 +02:00
api/match: limit the duration limit number to 2 decimal places
This commit is contained in:
@ -271,7 +271,7 @@ export default async function({ host, patternMatch, params, isSession }) {
|
|||||||
switch(r.error) {
|
switch(r.error) {
|
||||||
case "content.too_long":
|
case "content.too_long":
|
||||||
context = {
|
context = {
|
||||||
limit: env.durationLimit / 60,
|
limit: parseFloat((env.durationLimit / 60).toFixed(2)),
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user