diff --git a/src/ups/profiles/dao.js b/src/ups/profiles/dao.js index 2cee1e3..15f822b 100644 --- a/src/ups/profiles/dao.js +++ b/src/ups/profiles/dao.js @@ -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 = {