diff --git a/backend/schema/schema.go b/backend/schema/schema.go index 6519a9c..3a7bd83 100644 --- a/backend/schema/schema.go +++ b/backend/schema/schema.go @@ -152,7 +152,7 @@ const ( type SocialProvider string const ( - None SocialProvider = "NONE" + None SocialProvider = "NONE" Google SocialProvider = "GOOGLE" ) diff --git a/backend/schema/user/user.go b/backend/schema/user/user.go index 9af4027..ab98e47 100644 --- a/backend/schema/user/user.go +++ b/backend/schema/user/user.go @@ -159,7 +159,7 @@ func validatePatchUser(id *primitive.ObjectID, user *schema.User, dbClient *mong } } - // Hash the user password: + // Hash the user password: if user.Password != "" { password, _ := HashPassword(user.Password) user.Password = *password