Bug on Format date

This commit is contained in:
mr 2024-08-22 11:59:23 +02:00
parent bfa176a7c5
commit d766e3a7c3
2 changed files with 5 additions and 1 deletions

View File

@ -76,6 +76,10 @@ func (p *PeerCache) LaunchPeerExecution(peerID string, isMySelf bool, dataID str
url = strings.ReplaceAll(url, "localhost", dt.API())
url = strings.ReplaceAll(url, "127.0.0.1", dt.API())
r := regexp.MustCompile("(:[0-9]+)")
ttt := r.FindAllString(url, -1)
for _, t := range ttt {
url = strings.Replace(url, t, ":8080", -1)
}
r.ReplaceAllString(url, ":8080")
}
fmt.Println("LaunchPeerExecution AFT", url, dt.API())

View File

@ -121,7 +121,7 @@ func (wfa *workflowMongoAccessor) book(id string, realData *Workflow, execs []*w
if code != 200 {
continue
}
b, err := paccess.LaunchPeerExecution(p.GetID(), "", p.(*peer.Peer).Url, utils.BOOKING, tools.POST,
b, err := paccess.LaunchPeerExecution(p.GetID(), "", p.(*peer.Peer).Url+methods[tools.POST], utils.BOOKING, tools.POST,
(&workflow_execution.WorkflowExecutions{
WorkflowID: id,
ResourceID: dc_id,