我应该在build.gradle或包装器文件中编辑什么来解决这个问题?
var deleteInvoice = () => {
return invoiceRecord.remove().then(data => {
if (data.result.n === 0) {
// ATTN: it's better to throw Error instances
throw { code:"INVOICE_NOTFOUND", err:"This invoice could not be found: " + invoiceRecord._id };
}
}, err => {
err.message = 'deleteInvoice ERROR : ' + err.message;
// Re-throw error
throw err;
})
})};