fix(db): make paginated database reads always require "order" option (#39017)

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
This commit is contained in:
silverwind
2026-08-23 10:18:18 +02:00
committed by GitHub
parent 0bed1232ee
commit 1c16f04bf5
29 changed files with 161 additions and 65 deletions
+1 -1
View File
@@ -155,7 +155,7 @@ func TestRepoActions(t *testing.T) {
OpType: activities_model.ActionCommentIssue,
})
}
count, _ := db.Count[activities_model.Action](t.Context(), &db.ListOptions{})
count, _ := db.Count[activities_model.Action](t.Context(), nil)
assert.EqualValues(t, 3, count)
actions, _, err := GetFeeds(t.Context(), activities_model.GetFeedsOptions{
RequestedRepo: repo,