diff --git a/server/src/utils/AppError.ts b/server/src/utils/AppError.ts index 93baeb78e..c19f726f2 100644 --- a/server/src/utils/AppError.ts +++ b/server/src/utils/AppError.ts @@ -3,14 +3,14 @@ export interface AppErrorConfig { status?: number; service?: string | null; method?: string | null; - details?: any; + details?: unknown; } export class AppError extends Error { private status: number; private service: string | null; private method: string | null; - private details: any; + private details: unknown; constructor({ message, status = 500, service = null, method = null, details = null }: AppErrorConfig) { super(message); diff --git a/server/src/utils/imageProcessing.ts b/server/src/utils/imageProcessing.ts index 07ba3d87f..02d10534c 100755 --- a/server/src/utils/imageProcessing.ts +++ b/server/src/utils/imageProcessing.ts @@ -2,7 +2,7 @@ import sharp from "sharp"; const GenerateAvatarImage = async (file: Express.Multer.File) => { // Resize to target 64 * 64 - let resizedImageBuffer = await sharp(file.buffer) + const resizedImageBuffer = await sharp(file.buffer) .resize({ width: 64, height: 64,