Skip to content

Commit 81eb18c

Browse files
authored
Merge pull request #3699 from clairep94/add_typecheck_to_ci
pr05: Add typecheck to ci
2 parents 89dd4b3 + f604d61 commit 81eb18c

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@ jobs:
77
name: Test and lint code base
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v2
11-
- name: Use Node.js
12-
uses: actions/setup-node@v1
13-
with:
14-
node-version: '18.20.x'
15-
- run: npm install
16-
- run: npm run test
17-
- run: npm run lint
18-
19-
10+
- uses: actions/checkout@v2
11+
- name: Use Node.js
12+
uses: actions/setup-node@v1
13+
with:
14+
node-version: '18.20.x'
15+
- run: npm install
16+
- run: npm run test
17+
- run: npm run typecheck
18+
- run: npm run lint

server/routes/passport.routes.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Router, Request, Response, NextFunction } from 'express';
22
import passport from 'passport';
3+
import { UserDocument } from '../types';
34

45
const router = Router();
56

@@ -11,7 +12,7 @@ const authenticateOAuth = (service: string) => (
1112
passport.authenticate(
1213
service,
1314
{ failureRedirect: '/login' },
14-
(err: unknown, user: unknown) => {
15+
(err: unknown, user: UserDocument) => {
1516
if (err) {
1617
// use query string param to show error;
1718
res.redirect(`/account?error=${service}`);

0 commit comments

Comments
 (0)