remove redundant type array

This commit is contained in:
SowinskiBraeden committed 2022-04-18 21:11:43 -07:00
1 parent 41b991789e
commit 358a104449
1 file changed
+2 -2
+2 -2
View File
@@ -57,8 +57,8 @@ func Register(c *fiber.Ctx) error {
// Check if email or username is previously registered // Check if email or username is previously registered
count, err := userCollection.CountDocuments(ctx, bson.M{ count, err := userCollection.CountDocuments(ctx, bson.M{
"$or": []bson.M{ "$or": []bson.M{
bson.M{"email": email}, {"email": email},
bson.M{"username": username}, {"username": username},
}}, }},
) )
if err != nil { if err != nil {