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

fix: Resolve issues with updates in mongo and @updatedAt fields #34

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

Conversation

jozzi05
Copy link

@jozzi05 jozzi05 commented Apr 15, 2023

This pull request includes fixes for issues with updates when using MongoDB and the not working @updatedAt fields. Here's a summary of the changes:

fix: Resolve the issue with updates in MongoDB
Previously, updates were failing with an error about an unknown id arg (#28). This fix addresses the issue and ensures that updates work as expected.

fix: Automatically update @updatedAt fields with the current date
Previously, when a record was updated, the @updatedAt field was not automatically updated (SoftwareBrothers/adminjs#1452). This change resolves this issue.

feat(ci): Add Ci setup to run tests against MongoDB
Now CI runs tests against MongoDB (I used Mongo image from official Prisma examples) and Postgres. Here is an example of how this works.

fixes: #28
fixes: SoftwareBrothers/adminjs#1452

I want to ensure that these changes meet your expectations. If you prefer, I can remove the modifications made to the Prisma setup and GitHub workflow. Please let me know your thoughts.

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.

[Bug]: Prisma UpdatedAt not working Nestjs Prisma and Mongo issue on update
1 participant