by pass restriction

This commit is contained in:
mr
2026-03-17 16:46:40 +01:00
parent d0645f5ca7
commit cec8033ddc

View File

@@ -77,7 +77,7 @@ func (a *liveMongoAccessor[T]) CopyOne(data utils.DBObject) (utils.DBObject, int
b, _ := json.Marshal(live)
json.Unmarshal(b, &r)
live.SetResourceInstance(r, instance)
res, code, err := resAccess.StoreOne(r)
res, code, err := utils.GenericStoreOne(r, resAccess)
if err != nil {
return nil, code, err
}