We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d26551b commit 56b7f53Copy full SHA for 56b7f53
routers/api/v1/repo/repo.go
@@ -620,7 +620,13 @@ func Edit(ctx *context.APIContext) {
620
}
621
622
623
- ctx.JSON(http.StatusOK, convert.ToRepo(ctx.Repo.Repository, ctx.Repo.AccessMode))
+ repo, err := models.GetRepositoryByID(ctx.Repo.Repository.ID)
624
+ if err != nil {
625
+ ctx.InternalServerError(err)
626
+ return
627
+ }
628
+
629
+ ctx.JSON(http.StatusOK, convert.ToRepo(repo, ctx.Repo.AccessMode))
630
631
632
// updateBasicProperties updates the basic properties of a repo: Name, Description, Website and Visibility
0 commit comments