George Oastler

Results 49 comments of George Oastler

I wasted half a day trying to overcome this issue. Issue is present in `v20.1.1` but not in `v20.1.0` `npm i -g [email protected]` solves the issue

```bash NETLIFY_AUTH_TOKEN= npx netlify deploy --site 2da... --dir ./dist --message "local deploy from g-lt1" ``` If I run this using v20.1.1, I get "Multiple possible build commands found". v20.1.0 on...

@copilot make sure the mongoose connection waits for "connected" event before resolving the promise

@copilot allow multiple connection instances to exist, don't limit to singleton. Ensure only schemas are exported / imported, not models directly, as these are connection oriented, so be careful.

@copilot add middleware that ensures validation is called on update(), updateMany(), findOneAndUpdate()

@copilot make the middlewares a plugin for mongoose and apply the middleware via the plugin rather than wrapping a schema

@copilot make sure all schemas that are given to the helper have their `timestamps` field set to true