diff options
Diffstat (limited to 'hooks/fetchImages.ts')
-rw-r--r-- | hooks/fetchImages.ts | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/hooks/fetchImages.ts b/hooks/fetchImages.ts index d6e7d27..44aac6c 100644 --- a/hooks/fetchImages.ts +++ b/hooks/fetchImages.ts @@ -4,7 +4,13 @@ import _ from 'lodash'; export default (paths: string[]) => async (context: HookContext): Promise<HookContext> => { - const { service, app, result, params: { user } } = context; + const { + service, + app, + result, + params: { user } + } = context; + const fileService = app.service('files'); const model = service.Model; |