Skip to content

Commit

Permalink
refactor: Update getInvoice API to include slug in service selection
Browse files Browse the repository at this point in the history
  • Loading branch information
anarkrypto committed Jul 20, 2024
1 parent 0671474 commit d7184da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/get-invoice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const getInvoice = async (request: Request, env: Environment) => {

const { data, error } = await supabase
.from('invoices')
.select('*, service:services(id, name, display_name, avatar_url, description, website, contact_email)')
.select('*, service:services(id, slug, name, avatar_url, description, website, contact_email)')
.eq('id', id)
.single();

Expand Down

0 comments on commit d7184da

Please sign in to comment.