We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e1015b commit 6900a22Copy full SHA for 6900a22
database/index.js
@@ -58,7 +58,7 @@ function sendNotificationToUser(uid, postId) {
58
firebase.database.ServerValue.TIMESTAMP;
59
update['/user-posts/' + uid + '/' + postId + '/lastNotificationTimestamp'] =
60
61
- firebase.database().update(update);
+ firebase.database().ref().update(update);
62
// [END write_fan_out]
63
});
64
}
0 commit comments