-
Notifications
You must be signed in to change notification settings - Fork 9
PM-1897 prisma middleware for audit fields #83
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
Conversation
…dleware-for-audit-fields
…ere are deeply nested objects, and add audit fields to those as well
…into PM-1897_prisma-middleware-for-audit-fields
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 think this looks good - we shouldn't have to rebuild the database, correct? That's pretty time consuming, since we have to import all legacy data.
|
I only worked on the current schema. No updates to the prisma schema were produced. So, there shouldn't be necessary any database rebuild either. |
…into PM-1897_prisma-middleware-for-audit-fields
…into PM-1897_prisma-middleware-for-audit-fields
https://topcoder.atlassian.net/browse/PM-1894 - prisma middleware to automatically set updated by & created by based on request context.
.create()and.update()without those params.