From 613be47b65275484c0688abb3dd14776ce603092 Mon Sep 17 00:00:00 2001 From: Vardan Mkhitaryan Date: Mon, 23 Dec 2024 11:56:48 +0400 Subject: [PATCH] Feat: user logo, eslint fixes --- src/api/user/index.ts | 5 +++-- src/api/user/validation.schema.ts | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/api/user/index.ts b/src/api/user/index.ts index c33e708..3f95a3d 100644 --- a/src/api/user/index.ts +++ b/src/api/user/index.ts @@ -1,10 +1,11 @@ import express, { NextFunction, Request, Response } from 'express'; +import { UserCrud } from './user.crud'; +import { UpdateUserLogoSchema } from './validation.schema'; + import { ErrorMessages } from '~/core/dictionary/error.messages'; import { UnauthorizedError, UnprocessableEntityError } from '~/core/errors'; import { isAuthenticated } from '~/shared/user'; -import { UpdateUserLogoSchema } from './validation.schema'; -import { UserCrud } from './user.crud'; const route = express.Router(); diff --git a/src/api/user/validation.schema.ts b/src/api/user/validation.schema.ts index 6c08048..af3c7fb 100644 --- a/src/api/user/validation.schema.ts +++ b/src/api/user/validation.schema.ts @@ -2,9 +2,9 @@ import z from 'zod'; export type updateUserLogoReqPayload = z.infer; -export type deleteUserLogoDBPayload = { +export interface deleteUserLogoDBPayload { userId: string; -}; +} export type updateUserLogoDBPayload = updateUserLogoReqPayload & deleteUserLogoDBPayload;