Commit 8c1fe0a0 authored by nanahira's avatar nanahira

add range limit

parent d5efef42
Pipeline #8763 failed with stages
in 1 minute and 58 seconds
......@@ -80,6 +80,9 @@ export class Rule implements Salt {
const fromMinutes = Math.floor(fromTime.unix() / 60);
const toMinutes = Math.floor(toTime.unix() / 60);
const nowMinutes = Math.floor(now.unix() / 60);
if (nowMinutes < fromMinutes || nowMinutes > toMinutes) {
return false;
}
let sendingMinutes: number;
if (fromMinutes === toMinutes) {
sendingMinutes = fromMinutes;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment