New UpTo parameter to reduce grade accordingly

This commit is contained in:
nemunaire 2023-03-06 22:34:43 +01:00
parent 07ceb20d63
commit f7da603dbe
2 changed files with 14 additions and 8 deletions

View file

@ -470,7 +470,7 @@ func declareCallbacksRoutes(router *gin.RouterGroup) {
return
}
err = repo.fetchRepoTests(hook.BuildNumber, hook.Steps)
err = hook.fetchRepoTests(repo)
if err != nil {
log.Printf("Unable to fetchRepoTests(%d): %s", hook.RepositoryId, err.Error())
c.AbortWithStatusJSON(http.StatusInternalServerError, gin.H{"errmsg": "Unable to fetch tests results."})