From 1af87c85be33a730882064122fe707f940b2f61e Mon Sep 17 00:00:00 2001 From: NecroBread Date: Tue, 9 Jan 2024 10:09:06 +0200 Subject: [PATCH] minor fix --- .idea/express-ts-api.iml | 8 +++++ .../inspectionProfiles/profiles_settings.xml | 6 ++++ .idea/modules.xml | 8 +++++ .idea/vcs.xml | 6 ++++ .idea/workspace.xml | 33 +++++++++++++++++++ src/features/article/article-handlers.ts | 2 +- src/utils/build-query.ts | 4 +-- 7 files changed, 64 insertions(+), 3 deletions(-) create mode 100644 .idea/express-ts-api.iml create mode 100644 .idea/inspectionProfiles/profiles_settings.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml diff --git a/.idea/express-ts-api.iml b/.idea/express-ts-api.iml new file mode 100644 index 0000000..d9e6024 --- /dev/null +++ b/.idea/express-ts-api.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml new file mode 100644 index 0000000..105ce2d --- /dev/null +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..dc9e9df --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..9661ac7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..bf79d63 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + 1704786794561 + + + + \ No newline at end of file diff --git a/src/features/article/article-handlers.ts b/src/features/article/article-handlers.ts index d1dc943..9aa7d08 100644 --- a/src/features/article/article-handlers.ts +++ b/src/features/article/article-handlers.ts @@ -1,7 +1,7 @@ import { IJsonResponse } from "../../utils/json-response"; import * as articleService from "./article-service"; import { NextFunction, Request, Response } from "express"; -import { BadRequestError, InternalServerError, NotFoundError } from "../../utils/app-error"; +import { InternalServerError, NotFoundError } from "../../utils/app-error"; import { HttpStatusCode } from "../../utils/http-status-code"; import { IFullQuery } from "../../utils/build-query"; diff --git a/src/utils/build-query.ts b/src/utils/build-query.ts index acc3f0d..41b159a 100644 --- a/src/utils/build-query.ts +++ b/src/utils/build-query.ts @@ -1,3 +1,5 @@ +import { Repository } from "typeorm"; + export interface IFullQuery { where?: string | string[]; sortBy?: string | string[]; @@ -8,8 +10,6 @@ export interface IFullQuery { count?: string; } -import { Repository } from "typeorm"; - export interface IFullQuery { where?: string | string[]; sortBy?: string | string[];