booking id

This commit is contained in:
natib21
2026-06-24 08:33:51 +00:00
parent 7fed72ea7a
commit 9fcbf2783a

View File

@@ -37,7 +37,7 @@ export class FirstMileService {
* unknown or the booking has not reached PAID status.
*/
async acceptBooking(bookingReference: string): Promise<FirstMile | null> {
const booking = await this.bookingsRepository.findByReference(bookingReference);
const booking = await this.bookingsRepository.findById(bookingReference);
if (!booking) {
return null;