diff --git a/packages/rocketchat-custom-oauth/custom_oauth_server.js b/packages/rocketchat-custom-oauth/custom_oauth_server.js
index 6e4ddf62da8615f862719eef94880b907944fe69..689d146c34115c35c5306941e31b60216390c83e 100644
--- a/packages/rocketchat-custom-oauth/custom_oauth_server.js
+++ b/packages/rocketchat-custom-oauth/custom_oauth_server.js
@@ -257,7 +257,7 @@ export class CustomOAuth {
 					}
 				};
 
-				RocketChat.models.Users.update({_id: user._id, update});
+				RocketChat.models.Users.update({_id: user._id}, update);
 			}
 		});
 	}