mirror of
https://github.com/go-gitea/gitea.git
synced 2025-04-08 17:05:45 +02:00
fix: use new Status
This commit is contained in:
parent
c756f3081d
commit
6cdbf3e986
@ -9,7 +9,6 @@ import (
|
||||
"fmt"
|
||||
"time"
|
||||
|
||||
"code.gitea.io/gitea/core"
|
||||
"code.gitea.io/gitea/models/db"
|
||||
repo_model "code.gitea.io/gitea/models/repo"
|
||||
user_model "code.gitea.io/gitea/models/user"
|
||||
@ -98,14 +97,8 @@ func updateRepoRunsNumbers(ctx context.Context, repo *repo_model.Repository) err
|
||||
builder.Select("count(*)").From("bots_run").
|
||||
Where(builder.Eq{
|
||||
"repo_id": repo.ID,
|
||||
}.And(
|
||||
builder.In("status",
|
||||
core.StatusFailing,
|
||||
core.StatusKilled,
|
||||
core.StatusPassing,
|
||||
core.StatusError,
|
||||
),
|
||||
),
|
||||
"status": StatusFailure,
|
||||
},
|
||||
),
|
||||
).
|
||||
Update(repo)
|
||||
|
Loading…
x
Reference in New Issue
Block a user