This commit is contained in:
parent
4334907d91
commit
3a2fc984dd
|
@ -23,6 +23,7 @@ class Report extends Component {
|
|||
}
|
||||
|
||||
async toPdfStream() {
|
||||
try {
|
||||
const template = await this.render();
|
||||
const defaultOptions = Object.assign({}, config.pdf);
|
||||
|
||||
|
@ -56,6 +57,9 @@ class Report extends Component {
|
|||
resolve(stream);
|
||||
});
|
||||
});
|
||||
} catch (e) {
|
||||
console.log('ERROR CATCHED:', e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -5,6 +5,8 @@ const reportFooter = new Component('report-footer');
|
|||
module.exports = {
|
||||
name: 'claim-pickup-order',
|
||||
async serverPrefetch() {
|
||||
// FORCE FAIL FOR TEST
|
||||
throw new Error('Something went wrong');
|
||||
this.client = await this.fetchClient(this.id);
|
||||
this.sales = await this.fetchSales(this.id);
|
||||
this.claimConfig = await this.fetchClaimConfig();
|
||||
|
|
Loading…
Reference in New Issue