Skip to content
Snippets Groups Projects
Commit 1d3b66d6 authored by priagungs's avatar priagungs
Browse files

modified backend

parent 10ef8b76
Branches
No related merge requests found
...@@ -41,7 +41,7 @@ chatrooms_db.on('child_added', chatroom => { ...@@ -41,7 +41,7 @@ chatrooms_db.on('child_added', chatroom => {
title: chatSnap.child('nameSender').val(), title: chatSnap.child('nameSender').val(),
body: chatSnap.child('message').val() body: chatSnap.child('message').val()
}, },
token: chatSnap.child('receiver').val() token: chatSnap.child('idReceiver').val()
} }
admin.messaging().send(message) admin.messaging().send(message)
.then(response => { .then(response => {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment