Skip to content

Commit

Permalink
Don't load attrs
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty287 committed Jan 12, 2022
1 parent 7b47b95 commit 2663781
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions routers/api/v1/repo/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ func GetIssueDependencies(ctx *context.APIContext) {
return
}

issue, err := models.GetIssueWithAttrsByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
if err != nil {
if models.IsErrIssueNotExist(err) {
ctx.NotFound("IsErrIssueNotExist", err)
Expand Down Expand Up @@ -1094,7 +1094,7 @@ func GetIssueBlocks(ctx *context.APIContext) {
return
}

issue, err := models.GetIssueWithAttrsByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
if err != nil {
if models.IsErrIssueNotExist(err) {
ctx.NotFound("IsErrIssueNotExist", err)
Expand Down Expand Up @@ -1231,7 +1231,7 @@ func createIssueDependency(ctx *context.APIContext, t models.DependencyType) {
return
}

issue, err := models.GetIssueWithAttrsByIndex(repo.ID, form.Index)
issue, err := models.GetIssueByIndex(repo.ID, form.Index)
if err != nil {
if models.IsErrIssueNotExist(err) {
ctx.NotFound("IsErrIssueNotExist", err)
Expand Down Expand Up @@ -1260,7 +1260,7 @@ func removeIssueDependency(ctx *context.APIContext, t models.DependencyType) {
return
}

issue, err := models.GetIssueWithAttrsByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
if err != nil {
if models.IsErrIssueNotExist(err) {
ctx.NotFound("IsErrIssueNotExist", err)
Expand Down

0 comments on commit 2663781

Please sign in to comment.