merge-requests/4/head
Bsian 2020-05-04 13:07:55 +01:00
parent e6b1818222
commit 1b9d3c56f1
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
2 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,8 @@
"uuid": "^3.3.3" "uuid": "^3.3.3"
}, },
"devDependencies": { "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/fs-extra": "^8.0.0",
"@types/helmet": "^0.0.45", "@types/helmet": "^0.0.45",
"@types/ioredis": "^4.0.18", "@types/ioredis": "^4.0.18",

View File

@ -70,7 +70,7 @@ export default class Security {
return req.headers.authorization.split(' ')[1]; return req.headers.authorization.split(' ')[1];
} }
if (req.query && req.query.token) { if (req.query && req.query.token) {
return req.query.token; return req.query.token as string;
} }
return '0000000000'; return '0000000000';
} }