Skip to content

Commit 0b36aa0

Browse files
committed
api/match: limit the duration limit number to 2 decimal places
1 parent c392864 commit 0b36aa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/src/processing/match.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ export default async function({ host, patternMatch, params, isSession }) {
271271
switch(r.error) {
272272
case "content.too_long":
273273
context = {
274-
limit: env.durationLimit / 60,
274+
limit: parseFloat((env.durationLimit / 60).toFixed(2)),
275275
}
276276
break;
277277

0 commit comments

Comments
 (0)