You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: engine/api/migrate/clean_duplicate_hooks.go
+77Lines changed: 77 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -135,3 +135,80 @@ func cleanDuplicateHooks(ctx context.Context, db *gorp.DbMap, store cache.Store,
135
135
136
136
returnnil
137
137
}
138
+
139
+
funcFixEmptyUUIDHooks(ctx context.Context, db*gorp.DbMap, store cache.Store) error {
140
+
q:="select distinct(workflow.id) from w_node_hook join w_node on w_node.id = w_node_hook.node_id join workflow on workflow.id = w_node.workflow_id where uuid = ''"
141
+
varids []int64
142
+
143
+
if_, err:=db.Select(&ids, q); err!=nil {
144
+
returnsdk.WrapError(err, "unable to select workflow")
0 commit comments