-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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 sqlite lock #5176
Fix sqlite lock #5176
Conversation
models/repo.go
Outdated
return repo.checkUnitUser(x, userID, isAdmin, unitType) | ||
} | ||
|
||
func (repo *Repository) checkUnitUser(e Engine, userID int64, isAdmin bool, unitType UnitType) bool { | ||
if err := repo.getUnitsByUserID(x, userID, isAdmin); err != nil { |
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.
The parameter e
should be used here?
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 and also fixed another place.
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.
LGTM
Codecov Report
@@ Coverage Diff @@
## master #5176 +/- ##
=========================================
+ Coverage 37.49% 37.5% +<.01%
=========================================
Files 309 309
Lines 45786 45790 +4
=========================================
+ Hits 17169 17173 +4
Misses 26156 26156
Partials 2461 2461
Continue to review full report at Codecov.
|
* fix sqlite lock * fix sqlite lock on getUnitType
No description provided.