test booking

This commit is contained in:
mr
2024-09-25 10:02:10 +02:00
parent 89a1ab3f6e
commit 2df71c6571
2 changed files with 5 additions and 8 deletions

View File

@@ -30,7 +30,9 @@ func New() *workspaceMongoAccessor {
// it checks if a workspace with the same name already exists
func (wfa *workspaceMongoAccessor) DeleteOne(id string) (utils.DBObject, int, error) {
res, code, err := wfa.GenericDeleteOne(id, wfa)
wfa.share(res.(*Workspace), true, wfa.Caller) // Share the deletion to the peers
if code == 200 && res != nil {
wfa.share(res.(*Workspace), true, wfa.Caller) // Share the deletion to the peers
}
return res, code, err
}