Explorar o código

fix: S3 Export all trigger (#1922)

Regev Brody %!s(int64=5) %!d(string=hai) anos
pai
achega
8a1b5b1383
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      server/models/storage.js

+ 1 - 1
server/models/storage.js

@@ -203,7 +203,7 @@ module.exports = class Storage extends Model {
     try {
       const target = _.find(this.targets, ['key', targetKey])
       if (target) {
-        if (_.has(target.fn, handler)) {
+        if (_.hasIn(target.fn, handler)) {
           await target.fn[handler]()
         } else {
           throw new Error('Invalid Handler for Storage Target')