Skip to content
New issue

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

new softDelete #572

Open
bertho-zero opened this issue Feb 4, 2020 · 2 comments · May be fixed by #764
Open

new softDelete #572

bertho-zero opened this issue Feb 4, 2020 · 2 comments · May be fixed by #764

Comments

@bertho-zero
Copy link
Contributor

I tried to use the new softDelete hooks with deletedQuery and removeData but something like removeParams is missing.

My user does not have the rights to directly make these modifications, I need to extend params.

@matiaslopezd
Copy link
Contributor

And if you use alterItems hook?

@fratzinger
Copy link
Collaborator

Just a quick headsup. I started working on a massive rewrite of the package (#764). It's not released yet and will take a few weeks.

See https://github.com/feathersjs-ecosystem/feathers-hooks-common/blob/modernize/src/hooks/soft-delete/soft-delete.ts I added an option transformParams where you can change the params however you need to.

@fratzinger fratzinger linked a pull request Feb 18, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants