mirror of
https://github.com/wukko/cobalt.git
synced 2025-06-12 05:07:41 +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) {
|
||||
case "content.too_long":
|
||||
context = {
|
||||
limit: env.durationLimit / 60,
|
||||
limit: parseFloat((env.durationLimit / 60).toFixed(2)),
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user