function updateAllUsersToDBSantaNums(){
        for(var i = 0; i < userArr.length; i++){
            if (userArr[i].secretSanta != undefined) {
                firebase.database().ref("users/" + userArr[i].uid).update({
                    secretSanta: userArr[i].secretSanta
                });
            } else {
                console.log("Failed To Update Num " + userArr[i].name);
            }
        }
    }
//This function updates all the users Secret Santa opt-in numbers to the database
This function updates all the users Secret Santa opt-in numbers to the database
This function updates all the users Secret Santa opt - in numbers to the database
function updateAllUsersToDBSantaNums(){
        for(var i = 0; i < userArr.length; i++){
            if (userArr[i].secretSanta != undefined) {
                firebase.database().ref("users/" + userArr[i].uid).update({
                    secretSanta: userArr[i].secretSanta
                });
            } else {
                console.log("Failed To Update Num " + userArr[i].name);
            }
        }
    }
function updateAllUsersToDBSantaNums ( ) { for ( var i = 0 ; i < userArr . length ; i ++ ) { if ( userArr [ i ] . secretSanta != undefined ) { firebase . database ( ) . ref ( "users/" + userArr [ i ] . uid ) . update ( { secretSanta : userArr [ i ] . secretSanta } ) ; } else { console . log ( "Failed To Update Num " + userArr [ i ] . name ) ; } } }
This function updates all the users Secret Santa opt-in numbers to the database
This function updates all the users Secret Santa opt - in numbers to the database