From 6cf0ae09f567a059e1b48ccba2e09c29106200b1 Mon Sep 17 00:00:00 2001 From: natib21 Date: Wed, 24 Jun 2026 14:50:26 +0000 Subject: [PATCH] fix issue --- .../src/modules/first-mile/first-mile.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/edr-freight-api/src/modules/first-mile/first-mile.service.ts b/apps/edr-freight-api/src/modules/first-mile/first-mile.service.ts index 2d4079a8b..cb35f9a89 100644 --- a/apps/edr-freight-api/src/modules/first-mile/first-mile.service.ts +++ b/apps/edr-freight-api/src/modules/first-mile/first-mile.service.ts @@ -45,7 +45,7 @@ export class FirstMileService { * unknown or the booking has not reached PAID status. */ async acceptBooking(bookingReference: string): Promise { - const booking = await this.bookingsRepository.findById(bookingReference); + const booking = await this.bookingsRepository.findByReference(bookingReference); if (!booking) { return null;