Bug on Format date
This commit is contained in:
parent
772287225f
commit
2b23a65647
@ -1,6 +1,7 @@
|
|||||||
package shared_workspace
|
package shared_workspace
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"fmt"
|
||||||
"slices"
|
"slices"
|
||||||
|
|
||||||
"cloud.o-forge.io/core/oc-lib/dbs"
|
"cloud.o-forge.io/core/oc-lib/dbs"
|
||||||
@ -60,7 +61,7 @@ func (wfa *sharedWorkspaceMongoAccessor) sharedWorkspace(shared *SharedWorkspace
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
for _, p := range shared.Peers {
|
for _, p := range shared.Peers {
|
||||||
if code != 200 {
|
if code != 200 || (&peer.Peer{AbstractObject: utils.AbstractObject{UUID: p}}).IsMySelf() {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
paccess := (&peer.Peer{})
|
paccess := (&peer.Peer{})
|
||||||
@ -97,6 +98,9 @@ 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())
|
||||||
@ -168,6 +172,7 @@ func (wfa *sharedWorkspaceMongoAccessor) sendToPeer(shared *SharedWorkspace) {
|
|||||||
|
|
||||||
func (wfa *sharedWorkspaceMongoAccessor) UpdateOne(set utils.DBObject, id string) (utils.DBObject, int, error) {
|
func (wfa *sharedWorkspaceMongoAccessor) UpdateOne(set utils.DBObject, id string) (utils.DBObject, int, error) {
|
||||||
res, code, err := wfa.GenericUpdateOne(set.(*SharedWorkspace), id, wfa, &SharedWorkspace{})
|
res, code, err := wfa.GenericUpdateOne(set.(*SharedWorkspace), id, wfa, &SharedWorkspace{})
|
||||||
|
fmt.Println("UPDATE SHARED", res.Serialize())
|
||||||
wfa.deleteToPeer(res.(*SharedWorkspace))
|
wfa.deleteToPeer(res.(*SharedWorkspace))
|
||||||
wfa.sharedWorkflow(res.(*SharedWorkspace), id)
|
wfa.sharedWorkflow(res.(*SharedWorkspace), id)
|
||||||
wfa.sharedWorkspace(res.(*SharedWorkspace), id)
|
wfa.sharedWorkspace(res.(*SharedWorkspace), id)
|
||||||
|
Loading…
Reference in New Issue
Block a user