mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-29 05:23:58 +00:00
Fix typescript error
c.f. (slightly outdated, but same spirit) https://github.com/DefinitelyTyped/DefinitelyTyped/pull/43434#issuecomment-607181516 Signed-off-by: Dexter Chua <dec41@srcf.net>
This commit is contained in:
parent
c3a79fee9d
commit
5829611def
1 changed files with 1 additions and 1 deletions
|
@ -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({
|
||||
|
|
Loading…
Reference in a new issue