mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-03 19:16:51 +00:00
Clean up destroy routine
This commit is contained in:
@@ -66,7 +66,7 @@
|
||||
|
||||
<script>
|
||||
import {mapGetters} from "vuex";
|
||||
import Destroy from "../../api/webhooks/destroy";
|
||||
import Destroy from "../../api/generic/destroy";
|
||||
import List from "../../api/webhooks/list";
|
||||
|
||||
export default {
|
||||
@@ -119,8 +119,7 @@ export default {
|
||||
});
|
||||
},
|
||||
destroyWebhook: function (id) {
|
||||
let destr = new Destroy;
|
||||
destr.destroy(id).then(() => {
|
||||
(new Destroy('webhooks')).destroy(id).then(() => {
|
||||
this.$store.dispatch('fireflyiii/refreshCacheKey');
|
||||
this.triggerUpdate();
|
||||
});
|
||||
|
Reference in New Issue
Block a user