Skip to content

Commit 967a233

Browse files
committed
Rename LoadProject to LoadProjects
1 parent d132f84 commit 967a233

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

models/issues/issue.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ func (issue *Issue) LoadAttributes(ctx context.Context) (err error) {
327327
return err
328328
}
329329

330-
if err = issue.LoadProject(ctx); err != nil {
330+
if err = issue.LoadProjects(ctx); err != nil {
331331
return err
332332
}
333333

models/issues/issue_project.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
)
1414

1515
// LoadProject load the project the issue was assigned to
16-
func (issue *Issue) LoadProject(ctx context.Context) (err error) {
16+
func (issue *Issue) LoadProjects(ctx context.Context) (err error) {
1717
if len(issue.Projects) == 0 {
1818
err = db.GetEngine(ctx).Table("project").
1919
Join("INNER", "project_issue", "project.id=project_issue.project_id").

0 commit comments

Comments
 (0)