update migration notifaction link url

This commit is contained in:
liugq 2023-04-06 12:04:07 +08:00
parent 8b2a87ef83
commit db1c7322f1
1 changed files with 1 additions and 1 deletions

View File

@ -1465,7 +1465,7 @@ func (p *DispatcherProcessor) sendMajorTaskNotification(taskItem *task2.Task) {
var title, body string var title, body string
body = fmt.Sprintf("From Cluster: [%s (%s)], To Cluster: [%s (%s)]", config.Cluster.Source.Id, config.Cluster.Source.Name, config.Cluster.Target.Id, config.Cluster.Target.Name) body = fmt.Sprintf("From Cluster: [%s (%s)], To Cluster: [%s (%s)]", config.Cluster.Source.Id, config.Cluster.Source.Name, config.Cluster.Target.Id, config.Cluster.Target.Name)
link := fmt.Sprintf("/#/migration/data/%s/detail", taskItem.ID) link := fmt.Sprintf("/#/data_tools/migration/%s/detail", taskItem.ID)
switch taskItem.Status { switch taskItem.Status {
case task2.StatusReady: case task2.StatusReady:
log.Debugf("skip sending notification for ready task, id: %s", taskItem.ID) log.Debugf("skip sending notification for ready task, id: %s", taskItem.ID)