-
Notifications
You must be signed in to change notification settings - Fork 29
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
🚀 Remove redundant updates to modified_on #306
Conversation
Codecov Report
@@ Coverage Diff @@
## master #306 +/- ##
==========================================
- Coverage 53.22% 53.20% -0.03%
==========================================
Files 99 99
Lines 8638 8625 -13
==========================================
- Hits 4598 4589 -9
+ Misses 3347 3345 -2
+ Partials 693 691 -2
Continue to review full report at Codecov.
|
@@ -356,12 +356,6 @@ func handleModify(ctx context.Context, s *web.Server, r *http.Request) (interfac | |||
return nil, http.StatusInternalServerError, errors.Wrapf(err, "error applying pre commit hooks") | |||
} | |||
|
|||
// apply modified_by | |||
err = models.UpdateContactModifiedBy(ctx, tx, modifiedContactIDs, request.UserID) |
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 you can remove modifiedContactIDs
too above it is not used anymore
if err != nil { | ||
return errors.Wrapf(err, "error updating contacts modified_on") | ||
} | ||
} |
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.
done via the contactModifiedHook
Allow non-master releases
No description provided.