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:
@@ -139,7 +139,7 @@ export class CreateListingHandler implements ICommandHandler<CreateListingComman
|
||||
distanceMeters: c.distanceMeters,
|
||||
titleSimilarity: c.titleSimilarity,
|
||||
}));
|
||||
} catch (err) {
|
||||
} catch {
|
||||
this.logger.warn('Duplicate detection failed — listing created without warnings', 'CreateListingHandler');
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ export class CreateListingHandler implements ICommandHandler<CreateListingComman
|
||||
reason: priceResult.reason!,
|
||||
};
|
||||
}
|
||||
} catch (err) {
|
||||
} catch {
|
||||
this.logger.warn('Price validation failed — listing created without price warning', 'CreateListingHandler');
|
||||
}
|
||||
|
||||
|
||||
@@ -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