fix: S3 Export all trigger (#1922)

pull/1949/head
Regev Brody 5 years ago committed by GitHub
parent 9bd77a9ccd
commit 8a1b5b1383
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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')

Loading…
Cancel
Save