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

StartupDB throws an error when the updateObjects payload is undefined #14

Open
bitsplitter opened this issue Jan 3, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@bitsplitter
Copy link
Owner

When I call updateObjects without a payload, I get the following error:

STARTUPDB Error TypeError: Cannot read properties of undefined (reading 'id')
at addIdsToItemsThatHaveNone (/Users/jeroen/LatestCollectionServer/node_modules/startupdb/dist/server.js:117:19)
at dbUpdateObjects (/Users/jeroen/LatestCollectionServer/node_modules/startupdb/dist/server.js:569:5)
at async /Users/jeroen/LatestCollectionServer/dist/hooks/beforeGetCampaign.js:24:5
at async processMethod (/Users/jeroen/LatestCollectionServer/node_modules/startupdb/dist/server.js:692:24)
at async /Users/jeroen/LatestCollectionServer/node_modules/startupdb/dist/server.js:772:20

As a developer, I would like a more relevant error that helps me pinpoint the issue quicker.

@bitsplitter bitsplitter added the bug Something isn't working label Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant