diff options
author | yp05327 <576951401@qq.com> | 2023-04-09 23:07:23 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-09 22:07:23 +0800 |
commit | 8bc8ca1953e9edfe1677378472c321b3d33875fd (patch) | |
tree | e25491506ff507762421fdd9a18bc4dc4ba19946 /routers/web/org | |
parent | bedad23f9e043072bd6f260bff07919588e45e65 (diff) | |
download | gitea-8bc8ca1953e9edfe1677378472c321b3d33875fd.tar.gz gitea-8bc8ca1953e9edfe1677378472c321b3d33875fd.zip |
Improve GetBoards and getDefaultBoard (#22981)
Change
`GetBoards(ctx context.Context, projectID int64)`
to
`(p *Project) GetBoards(ctx context.Context) (BoardList, error)`
`getDefaultBoard` is same.
Diffstat (limited to 'routers/web/org')
-rw-r--r-- | routers/web/org/projects.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/org/projects.go b/routers/web/org/projects.go index 5d8005781d..5d1d7a15ca 100644 --- a/routers/web/org/projects.go +++ b/routers/web/org/projects.go @@ -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 |