mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2025-01-19 01:31:34 +00:00
Updated uploadController.js
Removed unnecessary check.
This commit is contained in:
parent
62a977542e
commit
867d005b34
@ -618,7 +618,7 @@ self.storeFilesToDb = async (req, res, user, infoMap) => {
|
||||
|
||||
await Promise.all(infoMap.map(async info => {
|
||||
// Check if the file exists by checking its hash and size
|
||||
const dbFile = info.data.hash && await db.table('files')
|
||||
const dbFile = await db.table('files')
|
||||
.where(function () {
|
||||
if (user === undefined)
|
||||
this.whereNull('userid')
|
||||
|
Loading…
Reference in New Issue
Block a user