Skip to content

Commit

Permalink
Update bookingController.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Feb 18, 2024
1 parent d7ee2c2 commit 664fb9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/src/controllers/bookingController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ export async function getBooking(req: Request, res: Response) {
export async function getBookings(req: Request, res: Response) {
try {
const { body }: { body: movininTypes.GetBookingsPayload } = req
const page = Number.parseInt(req.params.page, 10) + 1
const page = Number.parseInt(req.params.page, 10)
const size = Number.parseInt(req.params.size, 10)
const agencies = body.agencies.map((id: string) => new mongoose.Types.ObjectId(id))
const {
Expand Down
2 changes: 1 addition & 1 deletion backend/src/components/BookingList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function BookingList({

const data = await BookingService.getBookings(
payload,
_page,
_page + 1,
_pageSize,
)

Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/BookingList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ function BookingList({

const data = await BookingService.getBookings(
payload,
_page,
_page + 1,
_pageSize,
)

Expand Down

0 comments on commit 664fb9d

Please sign in to comment.