Skip to content

Commit

Permalink
fix(booking): update the method to post
Browse files Browse the repository at this point in the history
  • Loading branch information
raphckrman committed Dec 1, 2024
1 parent db4e5c4 commit 58ed1e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/Host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export const getBookings = async (token: string, hostId: number, week?: number):
};

export const bookMeal = async (token: string, hostId: number, bookId: string, day: number, reservations = 1, bookEvening = false): Promise<BookingDay> => {
const rawBook = await manager.put<rawBookResult>(HOST_BOOK_MEAL(hostId), {
const rawBook = await manager.post<rawBookResult>(HOST_BOOK_MEAL(hostId), {
dayOfWeek: day,
dayReserv: reservations,
web: {
Expand Down

0 comments on commit 58ed1e7

Please sign in to comment.