qwerty287
2023-10-24 15:54:43 +02:00
committed by GitHub
parent 5045f1e431
commit 387637bb4e

View File

@@ -551,7 +551,12 @@ func RepairAllRepos(c *gin.Context) {
func repairRepo(c *gin.Context, repo *model.Repo, withPerms bool) {
forge := server.Config.Services.Forge
_store := store.FromContext(c)
user := session.User(c)
user, err := _store.GetUser(repo.UserID)
if err != nil {
handleDbError(c, err)
return
}
// creates the jwt token used to verify the repository
t := token.New(token.HookToken, repo.FullName)