Skip to content

Commit 6900a22

Browse files
fixes firebase#5
1 parent 0e1015b commit 6900a22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function sendNotificationToUser(uid, postId) {
5858
firebase.database.ServerValue.TIMESTAMP;
5959
update['/user-posts/' + uid + '/' + postId + '/lastNotificationTimestamp'] =
6060
firebase.database.ServerValue.TIMESTAMP;
61-
firebase.database().update(update);
61+
firebase.database().ref().update(update);
6262
// [END write_fan_out]
6363
});
6464
}

0 commit comments

Comments
 (0)