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