diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bb1ac39..c4dc3d6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,7 +24,7 @@ jobs: - name: ESLint check run: yarn eslint . - name: Prettier check - run: yarn prettier . --debug-check + run: yarn prettier . --check - name: Typescript check run: yarn check-types diff --git a/Src/routes/users.ts b/Src/routes/users.ts index 30a810a..18e6660 100644 --- a/Src/routes/users.ts +++ b/Src/routes/users.ts @@ -47,7 +47,8 @@ router.post( router.post( `/:orgId/login`, userLoginValidationRules, - asyncHandler(async (req: Request, res: Response) => {const user: { user: User } = await userLogin( + asyncHandler(async (req: Request, res: Response) => { + const user: { user: User } = await userLogin( req.body.email, req.body.password, req.params.orgId, @@ -96,7 +97,7 @@ router.put( } const user: User = await getUserById(req.params.id); let hashedPassword: string | undefined; - if(req.body.password){ + if (req.body.password) { hashedPassword = await bcrypt.hash(req.body.password, 10); } const updatedUser: User = { diff --git a/tsconfig.json b/tsconfig.json index 2fc79b1..838dde9 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,6 +8,6 @@ "skipLibCheck": true, "forceConsistentCasingInFileNames": true }, - "include": ["src/**/*.ts"], + "include": ["src"], "exclude": ["node_modules"] }