diff --git a/index.js b/index.js index f556a57..c83a2bc 100644 --- a/index.js +++ b/index.js @@ -133,7 +133,7 @@ DB.getDB.then((DB) => { // If newUserObject it's an error message, we check by looking toLowerCase function if (!newUserObject.toLowerCase) { let user = { - userid: toLowerCase.insertedId, + userid: newUserObject.insertedId, profile: profile, } // Filter the provided information by the template, and adding to the DB, and login.