Chapter 13 - Handle specific error (not found in this case)
This commit is contained in:
@@ -169,6 +169,7 @@ export async function fetchInvoiceById(id: string) {
|
||||
amount: invoice.amount / 100,
|
||||
}));
|
||||
|
||||
console.log(invoice);
|
||||
return invoice[0];
|
||||
} catch (error) {
|
||||
console.error('Database Error:', error);
|
||||
|
||||
Reference in New Issue
Block a user