1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Improve GetBoards and getDefaultBoard (#22981)

Change 
`GetBoards(ctx context.Context, projectID int64)`
to
`(p *Project) GetBoards(ctx context.Context) (BoardList, error)`

`getDefaultBoard` is same.
This commit is contained in:
yp05327
2023-04-09 23:07:23 +09:00
committed by GitHub
parent bedad23f9e
commit 8bc8ca1953
3 changed files with 8 additions and 8 deletions

View File

@@ -300,7 +300,7 @@ func ViewProject(ctx *context.Context) {
return
}
boards, err := project_model.GetBoards(ctx, project.ID)
boards, err := project.GetBoards(ctx)
if err != nil {
ctx.ServerError("GetProjectBoards", err)
return