Skip to content

Commit

Permalink
Fix swapped parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorkw7 committed Apr 16, 2024
1 parent 13e2a9a commit 3f96a06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/api/EventAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,12 +103,12 @@ export const attendEvent = async (
};

export const expressCheckin = async (
attendanceCode: string,
email: string
email: string,
attendanceCode: string
): Promise<ExpressCheckInResponse> => {
const requestUrl = `${config.api.baseUrl}${config.api.endpoints.attendance.expressCheckIn}`;

const requestBody = { attendanceCode, email } as AttendEventRequest;
const requestBody = { email, attendanceCode } as AttendEventRequest;

const response = await axios.post<ExpressCheckInResponse>(requestUrl, requestBody);

Expand Down

0 comments on commit 3f96a06

Please sign in to comment.