Firebase Cloud Function updating ref with incorrect values

I had to change the ref to:

return admin.database().ref('/user_credits/' + creditId + '/' + userId).set({ "joined_date": receivedTimeStamp, "timeStamp": receivedTimeStamp, "credits_count": 1 });

I also had to update the ref inside the else statement to follow the same format.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top