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

Model Layer Refactor #1

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Model Layer Refactor #1

wants to merge 9 commits into from

Conversation

DanielErhardt
Copy link
Owner

moved from database folder to src/models

moved from database folder to src/models
they are now compatible with mongoose schema types
it now receives a static mongoose Model
now using static Archive model directly from import
now they all pass a static mongoose model as dependency through super
it resets the Model's collection, a disaster waiting to happen
it now seeds directly through the mongoose static models
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant