mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 16:06:21 +00:00
Proper undefined check
This commit is contained in:
parent
38d77fdfbb
commit
7de25210ce
@ -98,7 +98,7 @@ uploadsController.actuallyUpload = async (req, res, userid, album) => {
|
||||
hash: fileHash,
|
||||
ip: req.ip,
|
||||
albumid: album,
|
||||
userid: userid !== undefined ? userid.id : null,
|
||||
userid: typeof userid !== 'undefined' ? userid.id : null,
|
||||
timestamp: Math.floor(Date.now() / 1000)
|
||||
});
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user