mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-05 05:36:50 +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(),
|
||||
"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()
|
||||
|
||||
|
Reference in New Issue
Block a user