Add s for LoadProject function

This commit is contained in:
Tyrone Yeh 2024-04-11 15:59:14 +08:00
parent fc63953df6
commit 91b55d116c
No known key found for this signature in database
GPG Key ID: A0725352B993FBDD
2 changed files with 2 additions and 2 deletions

View File

@ -311,7 +311,7 @@ func (issue *Issue) LoadAttributes(ctx context.Context) (err error) {
return err
}
if err = issue.LoadProject(ctx); err != nil {
if err = issue.LoadProjects(ctx); err != nil {
return err
}

View File

@ -13,7 +13,7 @@ import (
)
// LoadProject load the project the issue was assigned to
func (issue *Issue) LoadProject(ctx context.Context) (err error) {
func (issue *Issue) LoadProjects(ctx context.Context) (err error) {
if issue.Projects == nil {
err = db.GetEngine(ctx).Table("project").
Join("INNER", "project_issue", "project.id=project_issue.project_id").