修复设置不去重时值无效 (#39)
This commit is contained in:
1 parent
f3ff8e76b7
commit
4b86f61bac
1 file changed
+2
-2
+2
-2
@@ -193,11 +193,11 @@ let groupMinute = DEFAULT_GROUP_MINUTE;
|
||||
function resolveGroupMinute(env) {
|
||||
if (env && env.GROUP_MINUTE) {
|
||||
const n = parseInt(env.GROUP_MINUTE, 10);
|
||||
if (!Number.isNaN(n) && n > 0) return Math.min(n, 30);
|
||||
if (!Number.isNaN(n) && n >= 0) return Math.min(n, 30);
|
||||
}
|
||||
if (typeof process !== "undefined" && process.env?.GROUP_MINUTE) {
|
||||
const n = parseInt(process.env.GROUP_MINUTE, 10);
|
||||
if (!Number.isNaN(n) && n > 0) return Math.min(n, 30);
|
||||
if (!Number.isNaN(n) && n >= 0) return Math.min(n, 30);
|
||||
}
|
||||
return Math.min(DEFAULT_GROUP_MINUTE, 30);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user