Skip to content

Commit

Permalink
Merge pull request #12 from Skythrew/fix/js-bookings
Browse files Browse the repository at this point in the history
fix(bookings): BookingDay list creation
  • Loading branch information
raphckrman authored Dec 24, 2024
2 parents 28c9402 + 2cc8e01 commit a9c84c4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes/Host.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ export const getBookings = async (token: string, hostId: number, week?: number):
}
const weekRange = getWeekRange(rawBooking.rsvWebDto[0].semaine, rawBooking.rsvWebDto[0].annee);
const bookings = [];
const days = [];
for (const rawBookingDto of rawBooking.rsvWebDto) {
const days = [];

for (const rawDay of rawBookingDto.jours) {
days.push(new BookingDay(
token,
Expand Down

0 comments on commit a9c84c4

Please sign in to comment.