From 358a104449337c83adc2275666cacbf23f684e90 Mon Sep 17 00:00:00 2001 From: Braeden Sowinski Date: Mon, 18 Apr 2022 21:11:43 -0700 Subject: [PATCH] remove redundant type array --- controllers/authController.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/authController.go b/controllers/authController.go index 5aa2082..052c677 100644 --- a/controllers/authController.go +++ b/controllers/authController.go @@ -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 {