added on nodes for rtdb and firestore andmade nodes pass through msg objects with as little changes as possible

This commit is contained in:
Peter Svensson
2019-07-15 10:27:01 +02:00
parent e9fd502879
commit fefe2f2509
24 changed files with 453 additions and 48 deletions

View File

@ -1,7 +1,5 @@
let oldpath
module.exports = function(RED) {
function FirebaseAdmin(config) {
@ -37,7 +35,8 @@ module.exports = function(RED) {
console.log('got file listing')
//console.dir(files[0])
let f = files[0].filter((e)=>{ return e.name[e.name.length-1] !== '/' })
node.send({payload: {files: f}})
msg.payload = {files: f}
node.send(msg)
})
}
}.bind(this));