Skip to content

Commit 537341d

Browse files
committed
style: fix lint issues in course routes
1 parent f40286e commit 537341d

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

routes/api/courses.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ import { asc, eq } from 'drizzle-orm';
33
import * as schemas from '../../db/schema.ts';
44
import { defineHandlers, ensure, getPagingOptions } from '../../lib/utils.ts';
55
import type {
6-
CourseCreateDto,
7-
CourseEditDto,
6+
CourseCreateDto,
7+
CourseEditDto,
88
} from '../../types/handlers/index.ts';
99
import CourseValidator from '../../validators/CourseValidator.ts';
1010

11-
1211
const handlers = defineHandlers({
1312
async coursesIndex(request, reply) {
1413
const page = request.query?.page ?? 1;

routes/api/courses/lessons.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import { and, asc, eq } from 'drizzle-orm';
22

33
import * as schemas from '../../../db/schema.ts';
4-
import { defineHandlers, ensure, getPagingOptions } from '../../../lib/utils.ts';
4+
import {
5+
defineHandlers,
6+
ensure,
7+
getPagingOptions,
8+
} from '../../../lib/utils.ts';
59
import type { CourseLessonCreateDto } from '../../../types/handlers/index.ts';
610
import LessonValidator from '../../../validators/Course/LessonValidator.ts';
711

0 commit comments

Comments
 (0)