Unverified Commit 8a1b5b13 authored by Regev Brody's avatar Regev Brody Committed by GitHub

fix: S3 Export all trigger (#1922)

parent 9bd77a9c
...@@ -203,7 +203,7 @@ module.exports = class Storage extends Model { ...@@ -203,7 +203,7 @@ module.exports = class Storage extends Model {
try { try {
const target = _.find(this.targets, ['key', targetKey]) const target = _.find(this.targets, ['key', targetKey])
if (target) { if (target) {
if (_.has(target.fn, handler)) { if (_.hasIn(target.fn, handler)) {
await target.fn[handler]() await target.fn[handler]()
} else { } else {
throw new Error('Invalid Handler for Storage Target') throw new Error('Invalid Handler for Storage Target')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment