Do you have a return statement in your function that should return the updated database model?
Im not sure if the code in the OP is up to date anymore, but I don’t see a return statement.
↧