mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 16:06:21 +00:00
Fixed some critical bugs
This commit is contained in:
parent
19dcd4fd02
commit
df8cac0f0b
@ -87,7 +87,7 @@ self.register = async (req, res, next) => {
|
||||
permission: perms.permissions.user
|
||||
})
|
||||
utils.invalidateStatsCache('users')
|
||||
token.onHold.delete(token)
|
||||
tokens.onHold.delete(token)
|
||||
|
||||
return res.json({ success: true, token })
|
||||
} catch (error) {
|
||||
|
@ -336,7 +336,7 @@ self.bulkDeleteFromDb = async (field, values, user) => {
|
||||
.whereIn(field, chunks[i])
|
||||
.where(function () {
|
||||
if (!ismoderator)
|
||||
self.where('userid', user.id)
|
||||
this.where('userid', user.id)
|
||||
})
|
||||
|
||||
// Push files that could not be found in db
|
||||
|
Loading…
Reference in New Issue
Block a user