Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.

Commit fe27831

Browse files
Bump lodash
1 parent 3db2e3b commit fe27831

File tree

4 files changed

+487
-319
lines changed

4 files changed

+487
-319
lines changed

.circleci/config.yml

-4
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ jobs:
77
working_directory: ~/repo
88
steps:
99
- checkout
10-
- restore_cache:
11-
keys:
12-
- v1-dependencies-{{ checksum "yarn.lock" }}
13-
- v1-dependencies-
1410
- run: yarn
1511
- save_cache:
1612
paths:

src/routes/api/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function apiRoutes(runner: Runner, client: BitbucketClient, config: Confi
4848
'/history',
4949
requireAuth('land'),
5050
wrap(async (req, res) => {
51-
const page = parseInt(req.query.page || '0', 10);
51+
const page = parseInt((req.query.page as string) || '0', 10);
5252
const history = await runner.getHistory(page);
5353
Logger.info('Requesting history', { namespace: 'routes:api:history', page });
5454
res.header('Access-Control-Allow-Origin', '*').json(history);
@@ -227,7 +227,7 @@ export function apiRoutes(runner: Runner, client: BitbucketClient, config: Confi
227227
'/landrequests',
228228
requireAuth('land'),
229229
wrap(async (req, res) => {
230-
const ids = req.query.ids.split(',');
230+
const ids = (req.query.ids as string).split(',');
231231
Logger.verbose('Requesting landrequests', { namespace: 'routes:api:landrequests', ids });
232232
res.json({ statuses: await runner.getStatusesForLandRequests(ids) });
233233
}),

src/routes/middleware.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ export const authenticateIncomingBBCall: express.RequestHandler = wrap(async (re
5353
error: 'Addon has not been installed, can not be validated',
5454
});
5555
}
56-
let jwt: string | undefined = req.query.jwt || req.header('authorization');
56+
let jwt: string | undefined =
57+
(req.query.jwt as string | undefined) || req.header('authorization');
5758
if (!jwt) {
5859
Logger.error('Authenticated request requires a JWT token', {
5960
namespace: 'routes:middleware:authenticateIncomingBBCall',

0 commit comments

Comments
 (0)