T-954157790482088: change update call to set call

This commit is contained in:
Okechi Onyeje 2018-12-29 23:18:28 -05:00
parent 97f7d7bc92
commit 9821395449

View File

@ -19,7 +19,7 @@ function createInitialProfiles(profileObj, tagferId) {
*/
function updateProfile(profileObj, profileNumber, tagferId) {
//persist profile data to firebase
return database.ref(`/profiles/${tagferId}/profile${profileNumber}`).update(profileObj);
return database.ref(`/profiles/${tagferId}/profile${profileNumber}`).set(profileObj);
}
module.exports = {