mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-27 19:00:55 +00:00
booking id
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user