adding guard for other components already initalized firebase-admin
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "node-red-contrib-firebase-admin",
|
"name": "node-red-contrib-firebase-admin",
|
||||||
"version": "1.1.11",
|
"version": "1.1.12",
|
||||||
"description": "A node-red module that wraps the server-side admin SDK of firebase, firestore, et.c.",
|
"description": "A node-red module that wraps the server-side admin SDK of firebase, firestore, et.c.",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -14,12 +14,13 @@ module.exports = function(RED) {
|
|||||||
storage = this.storage
|
storage = this.storage
|
||||||
this.bucket = config.bucket || c.bucket
|
this.bucket = config.bucket || c.bucket
|
||||||
this.path = config.path
|
this.path = config.path
|
||||||
console.log('storage-read set this.storage to '+c.storage)
|
|
||||||
console.log('config is '+config)
|
console.log('config is '+config)
|
||||||
}
|
}
|
||||||
|
|
||||||
let global = this.context().global
|
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')
|
//console.log('configuring storage-read to listen for messages')
|
||||||
node.on('input', function(msg) {
|
node.on('input', function(msg) {
|
||||||
|
|||||||
Reference in New Issue
Block a user