Skip to content

Commit

Permalink
fix: Incorrect status in flow_status_history
Browse files Browse the repository at this point in the history
  • Loading branch information
DafyddLlyr committed May 29, 2024
1 parent e4cfb30 commit 6e38a98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions e2e/tests/api-driven/src/flowStatusHistory/steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,8 @@ Then("a new flow_status_history record is created", async function () {
assert.ok(flowStatusHistory[1], "flow_status_history record not created");
assert.equal(
flowStatusHistory[1].status,
"offline",
`Flow status is ${flowStatusHistory[1].status} - it should be "offline"`,
"online",
`Flow status is ${flowStatusHistory[1].status} - it should be "online"`,
);
assert.notEqual(
flowStatusHistory[1].eventStart,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ BEGIN

-- Start new event
INSERT INTO flow_status_history (flow_id, status, event_start)
VALUES (NEW.id, OLD.status, NOW());
VALUES (NEW.id, NEW.status, NOW());

ELSIF (TG_OP = 'INSERT') THEN
-- Start new event
Expand Down

0 comments on commit 6e38a98

Please sign in to comment.