mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-06-01 04:12:10 +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:
parent
bedad23f9e
commit
8bc8ca1953
3 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue