Skip to content

Commit

Permalink
Merge pull request #2472 from actiontech/fix-workflow-url-in-notifica…
Browse files Browse the repository at this point in the history
…tion-ce

fix workflow url in notification
  • Loading branch information
ColdWaterLW authored Jul 5, 2024
2 parents 14533e0 + 1d99d4c commit 061e660
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sqle/notification/notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (w *WorkflowNotification) NotificationBody() string {
buf.WriteString(head)

if w.config.SQLEUrl != nil {
buf.WriteString(fmt.Sprintf("\n- 工单链接: %v/project/%v/order/%v",
buf.WriteString(fmt.Sprintf("\n- 工单链接: %v/project/%v/exec-workflow/%v",
strings.TrimRight(*w.config.SQLEUrl, "/"),
w.workflow.ProjectId,
w.workflow.WorkflowId,
Expand Down
2 changes: 1 addition & 1 deletion sqle/pkg/im/im.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func CreateApprove(projectId, workflowId string) {
}

sqleUrl := systemVariables[model.SystemVariableSqleUrl].Value
workflowUrl := fmt.Sprintf("%v/project/%s/order/%s", sqleUrl, workflow.ProjectId, workflow.WorkflowId)
workflowUrl := fmt.Sprintf("%v/project/%s/exec-workflow/%s", sqleUrl, workflow.ProjectId, workflow.WorkflowId)
if sqleUrl == "" {
newLog.Errorf("sqle url is empty")
workflowUrl = ""
Expand Down

0 comments on commit 061e660

Please sign in to comment.