Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

Commit a0a505e

Browse files
committed
fix: rename address to location for consistency with API
1 parent 09dd100 commit a0a505e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/services/BookingService.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const createBooking = async (
2222
endTime: string,
2323
optionalAttendees?: string[],
2424
referenceCode?: string,
25-
address?: string,
25+
location?: string,
2626
message?: string
2727
): Promise<Record<string, unknown>> => {
2828
const body = {
@@ -31,7 +31,7 @@ const createBooking = async (
3131
endTime: moment(endTime).format(),
3232
optionalAttendees,
3333
referenceCode,
34-
location: address,
34+
location,
3535
body: `Du har fått en bokning ifrån Mitt Helsingborg. Klicka på Acceptera för att bekräfta bokningen.\n\n${message}`,
3636
subject: "Mitt Helsingborg bokning",
3737
};
@@ -70,7 +70,7 @@ const updateBooking = async (
7070
endTime: string,
7171
optionalAttendees?: string[],
7272
referenceCode?: string,
73-
address?: string,
73+
location?: string,
7474
message?: string
7575
): Promise<Record<string, unknown>> => {
7676
const body = {
@@ -79,7 +79,7 @@ const updateBooking = async (
7979
endTime: moment(endTime).format(),
8080
optionalAttendees,
8181
referenceCode,
82-
location: address,
82+
location,
8383
body: `Du har fått en bokning ifrån Mitt Helsingborg. Klicka på Acceptera för att bekräfta bokningen.\n\n${message}`,
8484
subject: "Mitt Helsingborg bokning",
8585
};

0 commit comments

Comments
 (0)