From 1b9d3c56f1c00e74be687b6a970eefaf4d4aef3f Mon Sep 17 00:00:00 2001 From: Bsian Date: Mon, 4 May 2020 13:07:55 +0100 Subject: [PATCH] Fix CI --- package.json | 3 ++- src/api/Security.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 17183e4..47f9981 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,8 @@ "uuid": "^3.3.3" }, "devDependencies": { - "@types/express": "^4.17.2", + "@types/express": "^4.17.6", + "@types/express-serve-static-core": "^4.17.5", "@types/fs-extra": "^8.0.0", "@types/helmet": "^0.0.45", "@types/ioredis": "^4.0.18", diff --git a/src/api/Security.ts b/src/api/Security.ts index 2dc019f..5488662 100644 --- a/src/api/Security.ts +++ b/src/api/Security.ts @@ -70,7 +70,7 @@ export default class Security { return req.headers.authorization.split(' ')[1]; } if (req.query && req.query.token) { - return req.query.token; + return req.query.token as string; } return '0000000000'; }