-
Notifications
You must be signed in to change notification settings - Fork 87
stashBefore - add support for bulk operations #757
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
Comments
Sorry, that have opened issue with legacy project setup, but I'm sure that this error will happen also in latest Feathers versions too |
Now I have copied hook source code and modified myself:
|
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. This should be working then, see https://github.com/feathersjs-ecosystem/feathers-hooks-common/blob/modernize/src/hooks/stash-before/stash-before.ts |
Steps to reproduce
multi: true
.service.patch(null, { query: { date: "2024-08-14" }, mongoose: { upsert: true } }
(First please check that this issue is not already solved as described
here)
Expected behavior
At least, I don't want an error: Not found element with id
null
. At best, I want to stash these multiple item.Actual behavior
My log is flooded with errors: Not found element with id
null
, because our app make some bulk writes to this table.Module versions (especially the part that's not working):
Feathers v3 (yes it is old, but project is legacy and huge)
Feathers mongoose: 7.3.1 (tried also with 8)
Feathers-hooks-common: 4.20.2 (according source code, this error will happen in latest version)
NodeJS version:
NodeJS 16
Operating System:
Linux, Fedora 40
The text was updated successfully, but these errors were encountered: