{"action":"created","issue":{"url":"https://api.github.com/repos/gotify/plugin-api/issues/4","repository_url":"https://api.github.com/repos/gotify/plugin-api","labels_url":"https://api.github.com/repos/gotify/plugin-api/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/gotify/plugin-api/issues/4/comments","events_url":"https://api.github.com/repos/gotify/plugin-api/issues/4/events","html_url":"https://github.com/gotify/plugin-api/issues/4","id":440375666,"node_id":"MDU6SXNzdWU0NDAzNzU2NjY=","number":4,"title":"UpdatePluginConf seems to have no effect when called from Enable()/Disable()","user":{"login":"buckket","id":111178,"node_id":"MDQ6VXNlcjExMTE3OA==","avatar_url":"https://avatars1.githubusercontent.com/u/111178?v=4","gravatar_id":"","url":"https://api.github.com/users/buckket","html_url":"https://github.com/buckket","followers_url":"https://api.github.com/users/buckket/followers","following_url":"https://api.github.com/users/buckket/following{/other_user}","gists_url":"https://api.github.com/users/buckket/gists{/gist_id}","starred_url":"https://api.github.com/users/buckket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buckket/subscriptions","organizations_url":"https://api.github.com/users/buckket/orgs","repos_url":"https://api.github.com/users/buckket/repos","events_url":"https://api.github.com/users/buckket/events{/privacy}","received_events_url":"https://api.github.com/users/buckket/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-05-04T22:07:49Z","updated_at":"2019-05-05T10:35:35Z","closed_at":null,"author_association":"NONE","body":"I’m trying to reset all stored data when my plugin gets enabled/disabled. To archive this I’m calling `c.storageHandler.Save()` from within the plugin’s `Enable()` or `Disable()` methods. This seems to have no effect however. In other cases the `storageHandler` works as expected.\r\n\r\nLooking at https://gotify.net/docs/plugin-write#storager it seems that it should be possible.\r\n\r\nI’m developing against gotify-server v2.0.5\r\n"},"comment":{"url":"https://api.github.com/repos/gotify/plugin-api/issues/comments/489413470","html_url":"https://github.com/gotify/plugin-api/issues/4#issuecomment-489413470","issue_url":"https://api.github.com/repos/gotify/plugin-api/issues/4","id":489413470,"node_id":"MDEyOklzc3VlQ29tbWVudDQ4OTQxMzQ3MA==","user":{"login":"eternal-flame-AD","id":35571479,"node_id":"MDQ6VXNlcjM1NTcxNDc5","avatar_url":"https://avatars3.githubusercontent.com/u/35571479?v=4","gravatar_id":"","url":"https://api.github.com/users/eternal-flame-AD","html_url":"https://github.com/eternal-flame-AD","followers_url":"https://api.github.com/users/eternal-flame-AD/followers","following_url":"https://api.github.com/users/eternal-flame-AD/following{/other_user}","gists_url":"https://api.github.com/users/eternal-flame-AD/gists{/gist_id}","starred_url":"https://api.github.com/users/eternal-flame-AD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eternal-flame-AD/subscriptions","organizations_url":"https://api.github.com/users/eternal-flame-AD/orgs","repos_url":"https://api.github.com/users/eternal-flame-AD/repos","events_url":"https://api.github.com/users/eternal-flame-AD/events{/privacy}","received_events_url":"https://api.github.com/users/eternal-flame-AD/received_events","type":"User","site_admin":false},"created_at":"2019-05-05T10:35:35Z","updated_at":"2019-05-05T10:35:35Z","author_association":"MEMBER","body":"Thanks for the work:) I have located the problem and will submit a fix"}}
{"actor":{"display_login":"eternal-flame-AD"}}