Bug on Format date
This commit is contained in:
parent
45d53fc9a9
commit
4a932c8e23
@ -40,7 +40,7 @@ func (wfa *sharedWorkspaceMongoAccessor) sharedWorkspace(shared *SharedWorkspace
|
|||||||
eld := eldest.(*SharedWorkspace)
|
eld := eldest.(*SharedWorkspace)
|
||||||
if eld.Workspaces != nil {
|
if eld.Workspaces != nil {
|
||||||
for _, v := range eld.Workspaces {
|
for _, v := range eld.Workspaces {
|
||||||
accessor.UpdateOne(&workspace.Workspace{Shared: false}, v)
|
accessor.UpdateOne(&workspace.Workspace{Shared: shared.UUID}, v)
|
||||||
if wfa.Caller != nil || wfa.Caller.URLS == nil || wfa.Caller.URLS[utils.WORKSPACE.String()] == nil {
|
if wfa.Caller != nil || wfa.Caller.URLS == nil || wfa.Caller.URLS[utils.WORKSPACE.String()] == nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
@ -56,7 +56,7 @@ func (wfa *sharedWorkspaceMongoAccessor) sharedWorkspace(shared *SharedWorkspace
|
|||||||
}
|
}
|
||||||
if shared.Workspaces != nil {
|
if shared.Workspaces != nil {
|
||||||
for _, v := range shared.Workspaces {
|
for _, v := range shared.Workspaces {
|
||||||
workspace, code, _ := accessor.UpdateOne(&workspace.Workspace{Shared: true}, v)
|
workspace, code, _ := accessor.UpdateOne(&workspace.Workspace{Shared: shared.UUID}, v)
|
||||||
if wfa.Caller != nil || wfa.Caller.URLS == nil || wfa.Caller.URLS[utils.WORKSPACE.String()] == nil {
|
if wfa.Caller != nil || wfa.Caller.URLS == nil || wfa.Caller.URLS[utils.WORKSPACE.String()] == nil {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
@ -12,9 +12,9 @@ import (
|
|||||||
type Workspace struct {
|
type Workspace struct {
|
||||||
utils.AbstractObject
|
utils.AbstractObject
|
||||||
resources.ResourceSet
|
resources.ResourceSet
|
||||||
IsContextual bool `json:"is_contextual" bson:"is_contextual" default:"false"`
|
IsContextual bool `json:"is_contextual" bson:"is_contextual" default:"false"`
|
||||||
Active bool `json:"active" bson:"active" default:"false"`
|
Active bool `json:"active" bson:"active" default:"false"`
|
||||||
Shared bool `json:"shared" bson:"shared" default:"false"`
|
Shared string `json:"shared" bson:"shared" default:"false"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ao *Workspace) GetID() string {
|
func (ao *Workspace) GetID() string {
|
||||||
|
Loading…
Reference in New Issue
Block a user