mirror of
https://github.com/mokuappio/serverless-invoices.git
synced 2026-02-09 01:12:38 -05:00
Remove unused code. Fix deleting invoice.
This commit is contained in:
@@ -133,7 +133,7 @@ export default {
|
||||
return InvoiceService.updateInvoice(getters.invoice)
|
||||
.catch(err => commit('setErrors', err.errors));
|
||||
},
|
||||
async deleteInvoice(invoice) {
|
||||
async deleteInvoice(store, invoice) {
|
||||
const res = await InvoiceService.deleteInvoice(invoice.id);
|
||||
if ('invoice_id' in res) {
|
||||
Invoice.delete(res.invoice_id);
|
||||
|
||||
@@ -43,7 +43,6 @@ export default {
|
||||
},
|
||||
all() {
|
||||
return Team.query()
|
||||
.with(['logos'])
|
||||
.where('$isNew', false)
|
||||
.get();
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user