From a4b91a524bc4b8177a1aadebe64620b4bd0e77f4 Mon Sep 17 00:00:00 2001 From: sumukhswamy Date: Wed, 22 May 2024 17:14:17 -0700 Subject: [PATCH] added linter fix Signed-off-by: sumukhswamy --- server/routes/index.ts | 2 +- server/routes/query.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/routes/index.ts b/server/routes/index.ts index 24a3192..0541bb3 100644 --- a/server/routes/index.ts +++ b/server/routes/index.ts @@ -11,7 +11,7 @@ import { } from '../../../../src/core/server'; import QueryService from '../services/QueryService'; import TranslateService from '../services/TranslateService'; -import registerQueryRoute from './query'; +import { registerQueryRoute } from './query'; import registerTranslateRoute from './translate'; export function defineRoutes( diff --git a/server/routes/query.ts b/server/routes/query.ts index 597bbdc..c3e895a 100644 --- a/server/routes/query.ts +++ b/server/routes/query.ts @@ -20,7 +20,7 @@ import { ROUTE_PATH_SQL_TEXT, } from '../utils/constants'; -export default function query(server: IRouter, service: QueryService) { +export function registerQueryRoute(server: IRouter, service: QueryService) { server.post( { path: ROUTE_PATH_SQL_QUERY,