TokenChingy / _api

_api is an autogenerated CRUD API built on LowDB and ExpressJS.
MIT License
76 stars 5 forks source link

Handle `UnhandledPromiseRejectionWarning` when querying for something that's not there. #1

Open TokenChingy opened 6 years ago

TokenChingy commented 6 years ago

Need to find an elegant solution to handle a case where you query for something but the response won't send because an error is thrown but not handled therefor stalling the response.

Example, deleting a record from the collection and trying to delete it again.

TokenChingy commented 6 years ago

I'm probably going to fix this when I write the logic for the data operator's that do comparators.