Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions admin/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,11 @@ workflows:
middlewares: [admin-cors, admin-auth-middleware]
pipeline:
steps:
- name: set-target-status
type: step.set
config:
values:
target_status: "active"
- name: parse-request
type: step.request_parse
config:
Expand Down Expand Up @@ -1060,8 +1065,9 @@ workflows:
type: step.db_exec
config:
database: admin-db
query: "UPDATE workflows SET status = 'active', updated_at = ? WHERE id = ?"
query: "UPDATE workflows SET status = ?, updated_at = ? WHERE id = ?"
params:
- "{{index .steps \"set-target-status\" \"target_status\"}}"
- "{{index .steps \"set-now\" \"now\"}}"
- "{{index .steps \"parse-request\" \"path_params\" \"id\"}}"
- name: get-updated
Expand Down Expand Up @@ -1089,6 +1095,11 @@ workflows:
middlewares: [admin-cors, admin-auth-middleware]
pipeline:
steps:
- name: set-target-status
type: step.set
config:
values:
target_status: "stopped"
- name: parse-request
type: step.request_parse
config:
Expand Down Expand Up @@ -1116,8 +1127,9 @@ workflows:
type: step.db_exec
config:
database: admin-db
query: "UPDATE workflows SET status = 'stopped', updated_at = ? WHERE id = ?"
query: "UPDATE workflows SET status = ?, updated_at = ? WHERE id = ?"
params:
- "{{index .steps \"set-target-status\" \"target_status\"}}"
- "{{index .steps \"set-now\" \"now\"}}"
- "{{index .steps \"parse-request\" \"path_params\" \"id\"}}"
- name: get-updated
Expand Down