Fix serialize method

This commit is contained in:
Vladislav Hristov 2018-08-31 10:23:41 +03:00
parent e2af5c6ea8
commit 1f857a7f85

View File

@ -37,9 +37,11 @@ module.exports = class BankLetter {
}) {
this.client = client;
this.bankName = bankName;
this.template = template;
}
if ()
this.template = template;
}
async generate() {
registerHelpers();
@ -64,10 +66,11 @@ module.exports = class BankLetter {
try {
fs.writeFileSync(path, letter);
console.log("Data written to file");
console.log('Data written to file');
} catch (error) {
console.log(error);
throw error;
}
return new Promise(resolve => resolve(true));
}
};