This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
logic.FindMatchingUser = function(NewUser, ExistingUsers, callback) | |
{ | |
//campare email to see if same user or not | |
console.log("Comparing"); | |
console.log(ExistingUsers); | |
//make sure this handles multiple possible matches\ | |
//for each | |
for(var i = 0; i < ExistingUsers.length; i++) | |
{ | |
var user = ExistingUsers[i]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Logic.FindMatchingUser(User, data.data, function(matchingUser){ | |
if(matchingUser) | |
{ | |
Logs.appendEventLog("Match Found"); | |
console.log("Match Found"); | |
//compare attributes and run update to update | |
User["Id"] = matchingUser.Id; | |
if(Logic.CompareUsers(User, matchingUser) == true) | |
{ |