Skip to content

Commit 3ba942e

Browse files
committed
chore(milestone-2): Streamline code imports
Signed-off-by: SeeuSim <[email protected]>
1 parent c05e419 commit 3ba942e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

backend/question/src/services/get/index.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,16 @@
1-
import { db } from '../../lib/db/index';
21
import { and, arrayOverlaps, eq, ilike, notInArray, sql } from 'drizzle-orm';
3-
import { questions } from '../../lib/db/schema';
4-
import {
2+
3+
import { db } from '@/lib/db/index';
4+
import { questions } from '@/lib/db/schema';
5+
6+
import type {
57
IGetQuestionsPayload,
68
IGetQuestionsResponse,
79
IGetQuestionPayload,
810
IGetQuestionResponse,
911
IGetRandomQuestionPayload,
1012
IGetRandomQuestionResponse,
11-
} from '../get/types';
13+
} from './types';
1214

1315
export const getQuestionsService = async (
1416
payload: IGetQuestionsPayload

backend/question/src/services/get/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ export type IGetQuestionPayload = {
3232
};
3333

3434
export type IGetQuestionResponse = IServiceResponse<{
35-
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
3635
question?: {
3736
title: string; // name or title of the question
3837
description: string; // question description

0 commit comments

Comments
 (0)