mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-14 08:26:22 +00:00
Updated uploadController.js
Stricter comparison.
This commit is contained in:
parent
87904c9787
commit
d5fcb2ee26
@ -98,7 +98,7 @@ uploadsController.actuallyUpload = async (req, res, userid, album) => {
|
|||||||
hash: fileHash,
|
hash: fileHash,
|
||||||
ip: req.ip,
|
ip: req.ip,
|
||||||
albumid: album,
|
albumid: album,
|
||||||
userid: userid ? userid.id : null,
|
userid: userid !== undefined ? userid.id : null,
|
||||||
timestamp: Math.floor(Date.now() / 1000)
|
timestamp: Math.floor(Date.now() / 1000)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user