Browse Source

Switch $ to the correct format - {}

issue-90
idan 8 years ago
committed by GitHub
parent
commit
498deef983
  1. 2
      lastmodified-tracking/functions/index.js

2
lastmodified-tracking/functions/index.js

@ -22,5 +22,5 @@ admin.initializeApp(functions.config().firebase);
/**
* This Function updates the `/lastmodified` with the timestamp of the last write to `/chat/$message`.
*/
exports.touch = functions.database.ref('/chat/$message').onWrite(
exports.touch = functions.database.ref('/chat/{message}').onWrite(
event => admin.database().ref('/lastmodified').set(event.timestamp));

Loading…
Cancel
Save