From 98213954498a044805bb13b4753303e6e6b9065b Mon Sep 17 00:00:00 2001 From: Okechi Onyeje Date: Sat, 29 Dec 2018 23:18:28 -0500 Subject: [PATCH] T-954157790482088: change update call to set call --- src/ups/profiles/dao.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = {