function updateReadNotificationToDB(){
    //console.log(readNotificationArr);
    if (user.readNotifications != undefined) {
      firebase.database().ref("users/" + user.uid).update({
        readNotifications: readNotificationArr
      });
    } else {
      console.log("New Read Notifications List");
      firebase.database().ref("users/" + user.uid).update({readNotifications:{0:readNotificationArr}});
    }
  }
//This function updates any read notifications to the database.
This function updates any read notifications to the database.
This function updates any read notifications to the database .
function updateReadNotificationToDB(){
    if (user.readNotifications != undefined) {
      firebase.database().ref("users/" + user.uid).update({
        readNotifications: readNotificationArr
      });
    } else {
      console.log("New Read Notifications List");
      firebase.database().ref("users/" + user.uid).update({readNotifications:{0:readNotificationArr}});
    }
  }
function updateReadNotificationToDB ( ) { if ( user . readNotifications != undefined ) { firebase . database ( ) . ref ( "users/" + user . uid ) . update ( { readNotifications : readNotificationArr } ) ; } else { console . log ( "New Read Notifications List" ) ; firebase . database ( ) . ref ( "users/" + user . uid ) . update ( { readNotifications : { 0 : readNotificationArr } } ) ; } }
This function updates any read notifications to the database.
This function updates any read notifications to the database .
//console.log(readNotificationArr);