mirror of
				https://github.com/node-ebics/node-ebics-client.git
				synced 2025-10-31 19:47:05 +00:00 
			
		
		
		
	Fix serialize method
This commit is contained in:
		| @@ -37,9 +37,11 @@ module.exports = class BankLetter { | |||||||
| 	}) { | 	}) { | ||||||
| 		this.client = client; | 		this.client = client; | ||||||
| 		this.bankName = bankName; | 		this.bankName = bankName; | ||||||
| 		this.template = template; |  | ||||||
| 	} |  | ||||||
|  |  | ||||||
|  | 		if () | ||||||
|  | 		this.template = template; | ||||||
|  |  | ||||||
|  | 	} | ||||||
|  |  | ||||||
| 	async generate() { | 	async generate() { | ||||||
| 		registerHelpers(); | 		registerHelpers(); | ||||||
| @@ -64,10 +66,11 @@ module.exports = class BankLetter { | |||||||
|  |  | ||||||
| 		try { | 		try { | ||||||
| 			fs.writeFileSync(path, letter); | 			fs.writeFileSync(path, letter); | ||||||
| 			console.log("Data written to file"); | 			console.log('Data written to file'); | ||||||
| 		} catch (error) { | 		} catch (error) { | ||||||
| 			console.log(error); | 			console.log(error); | ||||||
| 			throw error; | 			throw error; | ||||||
| 		} | 		} | ||||||
|  | 		return new Promise(resolve => resolve(true)); | ||||||
| 	} | 	} | ||||||
| }; | }; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user