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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

View file

@ -313,7 +313,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