Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

protect hook attempts to map through 'result.data' on all service methods. #53

Closed
ppatel890 opened this issue Jan 22, 2018 · 1 comment

Comments

@ppatel890
Copy link

Steps to reproduce

Add 'protect' hook to all service methods for any specific method.

Expected behavior

On get, update, patch, the hook should only act on the single object returned. On find method, if result.data exists, map over result.data and run hook on every object in array.

Actual behavior

The hook attempts to map over 'result.data', even if the service method was not find.

@daffl
Copy link
Member

daffl commented Jan 23, 2018

Fixed in version 1.1.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants