From 498deef9835f1ffb5eb725aa06fd618f8084503a Mon Sep 17 00:00:00 2001 From: idan Date: Tue, 21 Mar 2017 14:05:51 +0700 Subject: [PATCH] Switch $ to the correct format - {} --- lastmodified-tracking/functions/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lastmodified-tracking/functions/index.js b/lastmodified-tracking/functions/index.js index 6ba846b..9a0aaac 100644 --- a/lastmodified-tracking/functions/index.js +++ b/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));