Skip to content

Commit

Permalink
fix workflow url in notification
Browse files Browse the repository at this point in the history
  • Loading branch information
BugsGuru committed Jul 3, 2024
1 parent 7e278a1 commit 1d99d4c
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 1d99d4c

Please sign in to comment.