fix: throw new error in fetchInvoiceById catch block (#423)

Co-authored-by: Delba de Oliveira <32464864+delbaoliveira@users.noreply.github.com>
This commit is contained in:
Kenny Elshoff
2023-11-14 09:37:37 -05:00
committed by GitHub
parent c64f396fa9
commit c8398b19f3

View File

@@ -165,6 +165,7 @@ export async function fetchInvoiceById(id: string) {
return invoice[0];
} catch (error) {
console.error('Database Error:', error);
throw new Error('Failed to fetch invoice.');
}
}