Skip to content

best way to save what you love

api/match: limit the duration limit number to 2 decimal places

wukko0b36aa09a7e2
diff --git a/api/src/processing/match.js b/api/src/processing/match.js
index d97c7f0f..65a021b0 100644
--- a/api/src/processing/match.js
+++ b/api/src/processing/match.js
@@ -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;