You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: