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 08:18:18 +00:00
committed by GitHub
co-authored by wxiaoguang
parent 0bed1232ee
commit 1c16f04bf5
29 changed files with 161 additions and 65 deletions
+4
View File
@@ -53,6 +53,10 @@ type FindScopedWorkflowSourceOpts struct {
SourceRepoID int64
}
func (opts FindScopedWorkflowSourceOpts) ToOrders() string {
return "id"
}
func (opts FindScopedWorkflowSourceOpts) ToConds() builder.Cond {
cond := builder.NewCond()
if len(opts.OwnerIDs) > 0 {