Skip to content

Commit

Permalink
Use db.Find instead of writing methods for every object (go-gitea#28084)
Browse files Browse the repository at this point in the history
  • Loading branch information
pangliang committed Nov 29, 2023
1 parent b3b5544 commit 5561213
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/web/repo/actions/view.go
Expand Up @@ -733,7 +733,7 @@ func Run(ctx *context_module.Context) {
return
}

alljobs, _, err := actions_model.FindRunJobs(ctx, actions_model.FindRunJobOptions{RunID: run.ID})
alljobs, err := db.Find[actions_model.ActionRunJob](ctx, actions_model.FindRunJobOptions{RunID: run.ID})
if err != nil {
log.Error("FindRunJobs: %v", err)
}
Expand Down

0 comments on commit 5561213

Please sign in to comment.