mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-13 01:13:40 +08:00
use correct where statement
This commit is contained in:
@@ -914,7 +914,10 @@ func (c *Client) FinishWorkflowExecutionStatisticViaExitHandler(namespace, name
|
|||||||
"finished_at": time.Now().UTC(),
|
"finished_at": time.Now().UTC(),
|
||||||
"phase": phase,
|
"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).
|
RunWith(c.DB).
|
||||||
Exec()
|
Exec()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user