Compare commits

...

2 Commits

Author SHA1 Message Date
mr
49cc7997f3 Bug on Format date 2024-08-27 13:12:09 +02:00
mr
2b23a65647 Bug on Format date 2024-08-27 13:11:34 +02:00

View File

@ -1,6 +1,7 @@
package shared_workspace
import (
"fmt"
"slices"
"cloud.o-forge.io/core/oc-lib/dbs"
@ -168,6 +169,7 @@ func (wfa *sharedWorkspaceMongoAccessor) sendToPeer(shared *SharedWorkspace) {
func (wfa *sharedWorkspaceMongoAccessor) UpdateOne(set utils.DBObject, id string) (utils.DBObject, int, error) {
res, code, err := wfa.GenericUpdateOne(set.(*SharedWorkspace), id, wfa, &SharedWorkspace{})
fmt.Println("UPDATE SHARED", res.Serialize())
wfa.deleteToPeer(res.(*SharedWorkspace))
wfa.sharedWorkflow(res.(*SharedWorkspace), id)
wfa.sharedWorkspace(res.(*SharedWorkspace), id)