fixed bug in storage module

This commit is contained in:
Peter Svensson
2020-04-22 20:03:17 +02:00
parent 603029bc87
commit 186b402d07
4 changed files with 9 additions and 7 deletions

View File

@ -10,8 +10,8 @@ module.exports = function(RED) {
if(config.cred){
let c = RED.nodes.getNode(config.cred)
this.admin = c.admin
this.storage = c.storage
storage = this.storage
let global = this.context().global
this.storage = c.storage || global.get('cloud-storage')
this.bucket = config.bucket || c.bucket
this.path = config.path