Updated uploadController.js

Stricter comparison.
This commit is contained in:
Bobby Wibowo 2018-01-24 05:29:52 +07:00
parent 87904c9787
commit d5fcb2ee26
No known key found for this signature in database
GPG Key ID: 51C3A1E1E22D26CF

View File

@ -98,7 +98,7 @@ uploadsController.actuallyUpload = async (req, res, userid, album) => {
hash: fileHash,
ip: req.ip,
albumid: album,
userid: userid ? userid.id : null,
userid: userid !== undefined ? userid.id : null,
timestamp: Math.floor(Date.now() / 1000)
})
} else {