Skip to content

Commit 91b55d1

Browse files
committed
Add s for LoadProject function
1 parent fc63953 commit 91b55d1

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
@@ -311,7 +311,7 @@ func (issue *Issue) LoadAttributes(ctx context.Context) (err error) {
311311
return err
312312
}
313313

314-
if err = issue.LoadProject(ctx); err != nil {
314+
if err = issue.LoadProjects(ctx); err != nil {
315315
return err
316316
}
317317

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 issue.Projects == nil {
1818
err = db.GetEngine(ctx).Table("project").
1919
Join("INNER", "project_issue", "project.id=project_issue.project_id").

0 commit comments

Comments
 (0)