We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create a custom service and return an array of arrays, from the find method:
find
async find(params?: Params): Promise<number[][]> { return [ [ 1, 2, 3, 4 ] ]; }
Add a protect hook from the @feathersjs/authentication-local package as after-hook to the global app hooks. Protect any field.
protect
@feathersjs/authentication-local
after
after: { all: [ protect('field') ], find: [], get: [], create: [], update: [], patch: [], remove: [] }
The result will be
[ { 0: 1, 1: 2, 2: 3, 3: 4 } ]
The source of this problem lies in these lines of the protect hook:
feathers/packages/authentication-local/src/hooks/protect.ts
Lines 6 to 10 in 6de92b1
_.omit
The text was updated successfully, but these errors were encountered:
Thanks 👍
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Steps to reproduce
Create a custom service and return an array of arrays, from the
find
method:Add a
protect
hook from the@feathersjs/authentication-local
package asafter
-hook to the global app hooks. Protect any field.The result will be
The source of this problem lies in these lines of the
protect
hook:feathers/packages/authentication-local/src/hooks/protect.ts
Lines 6 to 10 in 6de92b1
Here you invoke
_.omit
on an array which leads to this result.The text was updated successfully, but these errors were encountered: