Skip to content

Commit

Permalink
fix(worker): Prevent modifying actionType to TimeoutAdjust on non-Tim…
Browse files Browse the repository at this point in the history
…eout commands
  • Loading branch information
tzushimelon committed Feb 11, 2024
1 parent d3f73e1 commit 267e808
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,9 @@ async function executeActionUser(
);
// This is the current timeout **before** applying the new one
// If there is a timeout that hasn't expired yet, then this is an adjustment
// Always false if not a timeout action
const isTimeoutAdjust =
incomingActionType === ActionType.Timeout &&
communicationDisabledUntil.isValid() &&
communicationDisabledUntil.isAfter(dayjs.utc());

Expand Down

0 comments on commit 267e808

Please sign in to comment.