@rotorsoft/act 1.23.17 → 1.23.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -755,10 +755,9 @@ function synthesize_autoclose_reactions(registry, states, config2) {
755
755
  dues.push(days_after(head.created, after_days));
756
756
  if (keep_days !== void 0)
757
757
  dues.push(days_after(entry.tail.created, keep_days));
758
- if (dues.length)
759
- throw new DeferSignal({
760
- at: new Date(Math.min(...dues.map((d) => d.getTime())))
761
- });
758
+ const future = dues.map((d) => d.getTime()).filter((t) => t > Date.now());
759
+ if (future.length)
760
+ throw new DeferSignal({ at: new Date(Math.min(...future)) });
762
761
  }
763
762
  };
764
763
  const key = `__autoclose_${st.name}`;