Merge pull request #436 from dalcde/parsedqs

Fix typescript error
This commit is contained in:
David Mehren 2020-07-10 12:19:58 +02:00 committed by GitHub
commit 370916e951
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ StatusRouter.get('/temp', function (req, res) {
errors.errorForbidden(res)
} else {
const tempid = req.query.tempid
if (!tempid) {
if (!tempid || typeof tempid !== 'string') {
errors.errorForbidden(res)
} else {
Temp.findOne({