-
Notifications
You must be signed in to change notification settings - Fork 18
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
hotfix: demo preparation #106
Conversation
const PostModel = | ||
mongoose.models.Post || mongoose.model<IPost>('Post', postSchema); | ||
const PostModel = mongoose.model<IPost>('Post', postSchema); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm pretty sure I need these in for test:dev
because of some recompilation error of with models if it's missing. Are you removing these for any particular reason?
): Promise<typeof database | undefined> { | ||
if (config.get('environment') === 'testing') return; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I really should have done this instead of a resolve hack lol
// Connect to MongoDB database | ||
connectFn().then( | ||
connect().then( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is causing "TypeError: Cannot read properties of undefined (reading 'then')" for npm run test
Description
Aggregate fix of things needed for demo:
production
Resolves #105
Type of change
Please delete options that are not relevant.
Checklist:
Leave blank if not applicable
I have completed these steps when making this pull request:
Before opening the PR for review: