Skip to content

Commit

Permalink
fix OrderDescByRating in example and add deadline to gometalinter for…
Browse files Browse the repository at this point in the history
… travis ci
  • Loading branch information
Denis Isaev committed Sep 9, 2017
1 parent d0c4277 commit 7070775
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ test_static:
-e "model is unused" \
-e '"expections" is a misspelling of "exceptions"' \
-e "autogenerated_" \
--deadline=5m \
./...

test_unit:
Expand Down
2 changes: 1 addition & 1 deletion examples/comparison/gorm4/gorm4.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func getTodayBegin() time.Time {
// UserQuerySet is an autogenerated struct with a lot of typesafe methods.
// We can define any methods on it because it's in the same package
func (qs UserQuerySet) WithMaxRating(minMarks int) UserQuerySet {
return qs.RatingMarksGte(minMarks).OrderAscByRating()
return qs.RatingMarksGte(minMarks).OrderDescByRating()
}

// RegisteredToday returns only users registered today
Expand Down

0 comments on commit 7070775

Please sign in to comment.