Hello friends,
I’m trying to write a plugin in Discourse but I couldn’t update the data. There is no problem with adding and deleting data. It does this successfully.
I’ve been struggling for hours, but only this part is left in the plugin. If I do this too it will be over
Commands like destroyRecord and createRecord are for adding/deleting, but I couldn’t find which code to use for the update. I want to update other data except ID.
There may be an update command, but I couldn’t figure out how it works either.
Is there anyone who can help me with this? I’m stuck on the updatePayment section.