Skip to content

Commit 2663781

Browse files
committed
Don't load attrs
1 parent 7b47b95 commit 2663781

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

routers/api/v1/repo/issue.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -944,7 +944,7 @@ func GetIssueDependencies(ctx *context.APIContext) {
944944
return
945945
}
946946

947-
issue, err := models.GetIssueWithAttrsByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
947+
issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
948948
if err != nil {
949949
if models.IsErrIssueNotExist(err) {
950950
ctx.NotFound("IsErrIssueNotExist", err)
@@ -1094,7 +1094,7 @@ func GetIssueBlocks(ctx *context.APIContext) {
10941094
return
10951095
}
10961096

1097-
issue, err := models.GetIssueWithAttrsByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
1097+
issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
10981098
if err != nil {
10991099
if models.IsErrIssueNotExist(err) {
11001100
ctx.NotFound("IsErrIssueNotExist", err)
@@ -1231,7 +1231,7 @@ func createIssueDependency(ctx *context.APIContext, t models.DependencyType) {
12311231
return
12321232
}
12331233

1234-
issue, err := models.GetIssueWithAttrsByIndex(repo.ID, form.Index)
1234+
issue, err := models.GetIssueByIndex(repo.ID, form.Index)
12351235
if err != nil {
12361236
if models.IsErrIssueNotExist(err) {
12371237
ctx.NotFound("IsErrIssueNotExist", err)
@@ -1260,7 +1260,7 @@ func removeIssueDependency(ctx *context.APIContext, t models.DependencyType) {
12601260
return
12611261
}
12621262

1263-
issue, err := models.GetIssueWithAttrsByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
1263+
issue, err := models.GetIssueByIndex(ctx.Repo.Repository.ID, ctx.ParamsInt64(":index"))
12641264
if err != nil {
12651265
if models.IsErrIssueNotExist(err) {
12661266
ctx.NotFound("IsErrIssueNotExist", err)

0 commit comments

Comments
 (0)