mirror of
https://bitbucket.org/tagfer_team/tagfer-server.git
synced 2025-12-25 03:37:38 +00:00
T-954157790482088: change update call to set call
This commit is contained in:
parent
97f7d7bc92
commit
9821395449
@ -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 = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user