setup draft as live

This commit is contained in:
mr
2026-03-17 16:35:35 +01:00
parent 0a87343e3e
commit c39bc52312
2 changed files with 1 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ func (r *AbstractLive) GetResourceType() tools.DataType {
}
func (r *AbstractLive) StoreDraftDefault() {
r.IsDraft = true
r.IsDraft = false
}
func (r *AbstractLive) CanDelete() bool {

View File

@@ -57,7 +57,6 @@ func (a *liveMongoAccessor[T]) CopyOne(data utils.DBObject) (utils.DBObject, int
if len(live.GetResourcesID()) > 0 {
for _, r := range live.GetResourcesID() {
// TODO dependent of a existing resource
res, code, err := resAccess.LoadOne(r)
if err == nil {
return nil, code, err