fix(lint): resolve all 49 lint warnings and errors across codebase
- Remove unused imports/variables in seed scripts and test files - Replace console.log with console.warn in seed/utility scripts - Replace `as any` with proper Prisma types (InputJsonValue, PaymentStatus, Plan, UserWhereInput) - Fix import-x/no-named-as-default-member warnings in logger, mapbox, eslint config - Prefix unused callback params with underscore in e2e tests Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
import { type IPaymentRepository } from '../../domain/repositories/payment.repository';
|
||||
import { Money } from '../../domain/value-objects/money.vo';
|
||||
import { type IPaymentGatewayFactory } from '../../infrastructure/services/payment-gateway.interface';
|
||||
import { CreatePaymentCommand } from '../commands/create-payment/create-payment.command';
|
||||
import { CreatePaymentHandler } from '../commands/create-payment/create-payment.handler';
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { Inject, Logger } from '@nestjs/common';
|
||||
import { CommandHandler, type EventBus, type ICommandHandler } from '@nestjs/cqrs';
|
||||
import { type PaymentStatus } from '@prisma/client';
|
||||
import { NotFoundException, ValidationException } from '@modules/shared/domain/domain-exception';
|
||||
import {
|
||||
PAYMENT_REPOSITORY,
|
||||
@@ -47,7 +48,7 @@ export class HandleCallbackHandler implements ICommandHandler<HandleCallbackComm
|
||||
result.orderId,
|
||||
['PENDING', 'PROCESSING'],
|
||||
{
|
||||
status: targetStatus as any,
|
||||
status: targetStatus as PaymentStatus,
|
||||
callbackData: result.rawData,
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user