Skip to content

Commit

Permalink
Feat: user logo, eslint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
vmkhitaryanscn committed Dec 23, 2024
1 parent 69f18ba commit 613be47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/api/user/index.ts
Original file line number Diff line number Diff line change
@@ -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();

Expand Down
4 changes: 2 additions & 2 deletions src/api/user/validation.schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import z from 'zod';

export type updateUserLogoReqPayload = z.infer<typeof UpdateUserLogoSchema>;

export type deleteUserLogoDBPayload = {
export interface deleteUserLogoDBPayload {
userId: string;
};
}

export type updateUserLogoDBPayload = updateUserLogoReqPayload &
deleteUserLogoDBPayload;
Expand Down

0 comments on commit 613be47

Please sign in to comment.