From aea77bf8cbc2ff913629764deb7667fa53761f79 Mon Sep 17 00:00:00 2001 From: Peter Svensson Date: Tue, 16 Jul 2019 13:11:57 +0200 Subject: [PATCH] adding guard for other components already initalized firebase-admin --- package.json | 2 +- storage/storage-read.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 039d9d2..a976b87 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "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.", "main": "index.js", "scripts": { diff --git a/storage/storage-read.js b/storage/storage-read.js index 7c3bab5..db91a13 100644 --- a/storage/storage-read.js +++ b/storage/storage-read.js @@ -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) {