Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
ad956 committed Jun 6, 2024
1 parent f7cdd89 commit 9114a9f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lib/patient/bookAppointment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ import { getSessionToken } from "../sessions/sessionUtils";
import getBaseUrl from "@utils/getBaseUrl";

export default async function bookAppointment(
bookAppointmentData: bookingAppointment
bookAppointmentData: bookingAppointment,
transaction_id: string | null,
appointment_charge: string
) {
const session = await getSessionToken();
const serverUrl = getBaseUrl();
Expand All @@ -15,7 +17,11 @@ export default async function bookAppointment(
"Content-Type": "application/json",
Authorization: `Bearer ${session}`,
},
body: JSON.stringify(bookAppointmentData),
body: JSON.stringify({
...bookAppointmentData,
transaction_id,
appointment_charge,
}),
});

if (!response.ok) {
Expand Down

0 comments on commit 9114a9f

Please sign in to comment.