Updates to patching logic.
This commit is contained in:
parent
c040ff74c9
commit
244f0945bb
3 changed files with 63 additions and 44 deletions
|
|
@ -197,7 +197,7 @@ def init_entry_routes(app):
|
|||
raise TypeError("Invalid model.")
|
||||
|
||||
service = crudkit.crud.get_service(cls)
|
||||
item = service.get(id, params)
|
||||
service.update(id, data=payload, actor="update_entry")
|
||||
|
||||
return {"status": "success", "payload": payload}
|
||||
except Exception as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue