Regev Brody
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
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') |
|
|
|