fixed wrong query logic

This commit is contained in:
Wyatt Johnson
2018-01-05 11:17:04 -07:00
parent b42cce5747
commit 7b5993bc60
+2 -2
View File
@@ -140,7 +140,7 @@ class UsersService {
let user = await UserModel.findOneAndUpdate(
{
id,
status: {
'status.banned.status': {
$ne: status,
},
},
@@ -189,7 +189,7 @@ class UsersService {
let user = await UserModel.findOneAndUpdate(
{
id,
status: {
'status.username.status': {
$ne: status,
},
},