Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
new Promise((resolve, reject) => {
chargebee.invoice
.list({
"customer_id[is]": id
})
.request((error: any, result: any) => {
if (error) return reject(error);
resolve(result as any);
});
});