fix: warehouse query

This commit is contained in:
ghost2023
2026-07-02 16:32:35 +03:00
parent b75a3ab54b
commit df60c4750e
2 changed files with 250 additions and 130 deletions

View File

@@ -1,10 +1,4 @@
import {
BadRequestException,
ConflictException,
Injectable,
Logger,
NotFoundException,
} from "@nestjs/common";
import { Injectable, Logger, NotFoundException } from "@nestjs/common";
import { FindOptionsWhere } from "typeorm";
import { InjectDataSource } from "@nestjs/typeorm";
import { DataSource } from "typeorm";
@@ -98,8 +92,6 @@ export class FirstMileService {
firstMilePickupAddress?: string | null;
serviceType?: { includesFirstMile?: boolean | null } | null;
}): Promise<FirstMile | null> {
const label = booking.reference ?? booking.id;
if (booking.paymentStatus !== "PAID") {
return null;
}