diff --git a/flow-to-rtdb.js b/flow-to-rtdb.js index cbe3158..f661549 100644 --- a/flow-to-rtdb.js +++ b/flow-to-rtdb.js @@ -19,6 +19,7 @@ module.exports = function(RED) { console.log('flow-to-rtdb path='+this.path+', flowId='+this.flowId) runtime.flows.getFlow({id: this.flowId}).then((flow)=>{ + flow.updated_at = Date.now() this.admin.database().ref(this.path).set(flow).then((res)=>{ console.log('firebase set result '+res) console.dir(res) diff --git a/package.json b/package.json index cc58054..eaa3692 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-firebase-admin", - "version": "1.0.4", + "version": "1.0.5", "description": "A node-red module that wraps the server-side admin SDK of firebase, firestore, et.c.", "main": "index.js", "scripts": { diff --git a/rtdb-to-flow.html b/rtdb-to-flow.html index cb00f88..785d74d 100644 --- a/rtdb-to-flow.html +++ b/rtdb-to-flow.html @@ -7,6 +7,7 @@ name: {value:""}, flowId: {value:""}, path: {value:""}, + env_var: {value:""}, cred: {value: "", type: 'firebase-config'} }, inputs:1, @@ -45,6 +46,11 @@ +