mirror of
https://github.com/wassname/talk.git
synced 2026-08-14 12:50:17 +08:00
fixed wrong query logic
This commit is contained in:
+2
-2
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user