adding guard for other components already initalized firebase-admin

This commit is contained in:
Peter Svensson
2019-07-16 13:11:57 +02:00
parent 6c308fec3e
commit aea77bf8cb
2 changed files with 4 additions and 3 deletions

View File

@ -14,12 +14,13 @@ module.exports = function(RED) {
storage = this.storage
this.bucket = config.bucket || c.bucket
this.path = config.path
console.log('storage-read set this.storage to '+c.storage)
console.log('config is '+config)
}
let global = this.context().global
this.torage = global.get('cloud-storage')
this.storage = global.get('cloud-storage')
console.log('* storage-read set this.storage to '+this.storage)
//console.log('configuring storage-read to listen for messages')
node.on('input', function(msg) {