fix: eslint problem
This commit is contained in:
@@ -26,18 +26,18 @@ export class LoggerService extends Logger {
|
||||
}
|
||||
}
|
||||
|
||||
override log(message: any) {
|
||||
this.sendLogToTelegram("test", message);
|
||||
override log(message: unknown) {
|
||||
this.sendLogToTelegram("test", message as string);
|
||||
super.log(message);
|
||||
}
|
||||
|
||||
override error(message: any, trace?: any) {
|
||||
override error(message: unknown, trace?: unknown) {
|
||||
super.error(message, trace);
|
||||
this.sendLogToTelegram("error", `${message}\nTrace: ${trace}`);
|
||||
}
|
||||
|
||||
override warn(message: any) {
|
||||
override warn(message: unknown) {
|
||||
super.warn(message);
|
||||
this.sendLogToTelegram("warn", message);
|
||||
this.sendLogToTelegram("warn", message as string);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// eslint-disable-next-line import/no-named-as-default
|
||||
import Decimal from "decimal.js";
|
||||
import { Column, Entity, ManyToOne, OneToMany } from "typeorm";
|
||||
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// eslint-disable-next-line import/no-named-as-default
|
||||
import Decimal from "decimal.js";
|
||||
import { Column, Entity, ManyToOne } from "typeorm";
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import { randomBytes } from "node:crypto";
|
||||
|
||||
import { BadRequestException, Injectable } from "@nestjs/common";
|
||||
// eslint-disable-next-line import/no-named-as-default
|
||||
import Decimal from "decimal.js";
|
||||
import { DataSource, QueryRunner } from "typeorm";
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { BadRequestException, Injectable } from "@nestjs/common";
|
||||
import dayjs from "dayjs";
|
||||
// eslint-disable-next-line import/no-named-as-default
|
||||
import Decimal from "decimal.js";
|
||||
import { DataSource, In, Not } from "typeorm";
|
||||
|
||||
|
||||
@@ -206,7 +206,7 @@ export class CustomersService {
|
||||
if (!addressEntity) throw new BadRequestException(UserMessage.ADDRESS_NOT_FOUND);
|
||||
|
||||
// Prepare address updates
|
||||
const addressUpdates: any = {};
|
||||
const addressUpdates: Record<string, unknown> = {};
|
||||
|
||||
if (cityId) {
|
||||
const { city } = await this.addressService.getCity(+cityId);
|
||||
|
||||
Reference in New Issue
Block a user