setup draft as live
This commit is contained in:
@@ -63,7 +63,7 @@ func (r *AbstractLive) GetResourceType() tools.DataType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (r *AbstractLive) StoreDraftDefault() {
|
func (r *AbstractLive) StoreDraftDefault() {
|
||||||
r.IsDraft = true
|
r.IsDraft = false
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *AbstractLive) CanDelete() bool {
|
func (r *AbstractLive) CanDelete() bool {
|
||||||
|
|||||||
@@ -57,7 +57,6 @@ func (a *liveMongoAccessor[T]) CopyOne(data utils.DBObject) (utils.DBObject, int
|
|||||||
|
|
||||||
if len(live.GetResourcesID()) > 0 {
|
if len(live.GetResourcesID()) > 0 {
|
||||||
for _, r := range live.GetResourcesID() {
|
for _, r := range live.GetResourcesID() {
|
||||||
// TODO dependent of a existing resource
|
|
||||||
res, code, err := resAccess.LoadOne(r)
|
res, code, err := resAccess.LoadOne(r)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return nil, code, err
|
return nil, code, err
|
||||||
|
|||||||
Reference in New Issue
Block a user