Skip to content

Commit 6563ad1

Browse files
author
Lasim
committed
fix(backend): specify error type as unknown in catch blocks
1 parent 7964104 commit 6563ad1

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

services/backend/src/routes/auth/github.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ export default async function githubAuthRoutes(fastify: FastifyInstance) {
348348
}, 'Failed to send welcome email after GitHub OAuth signup');
349349
});
350350
}
351-
} catch (error) {
351+
} catch (error: unknown) {
352352
// Don't fail OAuth if welcome email fails
353353
fastify.log.warn({
354354
error,

services/backend/src/routes/auth/verifyEmail.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export default async function verifyEmailRoute(server: FastifyInstance) {
184184
const jsonString = JSON.stringify(successResponse);
185185
return reply.status(200).type('application/json').send(jsonString);
186186

187-
} catch (error) {
187+
} catch (error: unknown) {
188188
server.log.error(error, 'Error during email verification:');
189189
const errorResponse: VerifyEmailErrorResponse = {
190190
success: false,

services/backend/tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
"esModuleInterop": true,
1111
"allowSyntheticDefaultImports": true,
1212
"resolveJsonModule": true,
13+
"forceConsistentCasingInFileNames": true,
1314
"baseUrl": ".",
1415
"paths": {
1516
"@src/*": ["src/*"]
1617
}
1718
},
1819
"include": ["src/**/*.ts"],
19-
"exclude": ["node_modules"]
20+
"exclude": ["node_modules", "dist", "**/*.test.ts", "**/*.spec.ts"]
2021
}

0 commit comments

Comments
 (0)