Bug on Format date

This commit is contained in:
mr 2024-08-27 13:12:09 +02:00
parent 2b23a65647
commit 49cc7997f3

View File

@ -61,7 +61,7 @@ func (wfa *sharedWorkspaceMongoAccessor) sharedWorkspace(shared *SharedWorkspace
continue continue
} }
for _, p := range shared.Peers { for _, p := range shared.Peers {
if code != 200 || (&peer.Peer{AbstractObject: utils.AbstractObject{UUID: p}}).IsMySelf() { if code != 200 {
continue continue
} }
paccess := (&peer.Peer{}) paccess := (&peer.Peer{})
@ -98,9 +98,6 @@ func (wfa *sharedWorkspaceMongoAccessor) sharedWorkflow(shared *SharedWorkspace,
} }
paccess := (&peer.Peer{}) paccess := (&peer.Peer{})
for _, p := range shared.Peers { for _, p := range shared.Peers {
if (&peer.Peer{AbstractObject: utils.AbstractObject{UUID: p}}).IsMySelf() {
continue
}
b, err := paccess.LaunchPeerExecution(p, v, utils.WORKFLOW, tools.DELETE, nil, wfa.Caller) b, err := paccess.LaunchPeerExecution(p, v, utils.WORKFLOW, tools.DELETE, nil, wfa.Caller)
if err != nil && b == nil { if err != nil && b == nil {
wfa.Logger.Error().Msg("Could not send to peer " + p + ". Error: " + err.Error()) wfa.Logger.Error().Msg("Could not send to peer " + p + ". Error: " + err.Error())