remove redundant type array
This commit is contained in:
1 parent
41b991789e
commit
358a104449
1 file changed
+2
-2
@@ -57,8 +57,8 @@ func Register(c *fiber.Ctx) error {
|
||||
// Check if email or username is previously registered
|
||||
count, err := userCollection.CountDocuments(ctx, bson.M{
|
||||
"$or": []bson.M{
|
||||
bson.M{"email": email},
|
||||
bson.M{"username": username},
|
||||
{"email": email},
|
||||
{"username": username},
|
||||
}},
|
||||
)
|
||||
if err != nil {
|
||||
|
||||
Reference in new issue
Block a user