fix: resolve 21 lint errors from GDPR/logger/caching commits and fix web lint
- Fix import ordering in auth DTOs, admin module, and test files - Merge duplicate @modules/shared imports (no-duplicates with prefer-inline) - Remove unused imports (ForceDeleteUserCommand, Inject) - Use parameterless catch for unused error bindings - Switch web lint from `next lint` to `eslint` (flat config compatibility) Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -2,8 +2,7 @@ import { Injectable } from '@nestjs/common';
|
||||
import { type Listing as PrismaListing, type ListingStatus } from '@prisma/client';
|
||||
import { type PrismaService } from '@modules/shared';
|
||||
import { ListingEntity, type ListingProps } from '../../domain/entities/listing.entity';
|
||||
import { type ListingDetailData } from '../../domain/repositories/listing-read.dto';
|
||||
import { type ListingSearchItem, type ListingSellerItem } from '../../domain/repositories/listing-read.dto';
|
||||
import { type ListingDetailData, type ListingSearchItem, type ListingSellerItem } from '../../domain/repositories/listing-read.dto';
|
||||
import { type IListingRepository, type ListingSearchParams, type PaginatedResult } from '../../domain/repositories/listing.repository';
|
||||
import { Price } from '../../domain/value-objects/price.vo';
|
||||
import { findByIdWithProperty, searchListings, findBySellerIdQuery } from './listing-read.queries';
|
||||
|
||||
@@ -113,7 +113,7 @@ export class PrismaPriceValidator implements IPriceValidator {
|
||||
return { min: rows[0]!.min_price, max: rows[0]!.max_price };
|
||||
}
|
||||
return null;
|
||||
} catch (err) {
|
||||
} catch {
|
||||
this.logger.warn('Failed to fetch market range, using defaults', 'PrismaPriceValidator');
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user