use correct where statement

This commit is contained in:
rushtehrani
2020-11-12 12:22:15 -08:00
parent f7e48a0be7
commit 4fec204e7f

View File

@@ -914,7 +914,10 @@ func (c *Client) FinishWorkflowExecutionStatisticViaExitHandler(namespace, name
"finished_at": time.Now().UTC(),
"phase": phase,
}).
Where(sq.Eq{"name": name}, sq.NotEq{"phase": "Terminated"}).
Where(sq.And{
sq.Eq{"name": name},
sq.NotEq{"phase": "Terminated"},
}).
RunWith(c.DB).
Exec()