fix: builds UI

This commit is contained in:
Jason Song
2022-10-21 17:59:29 +08:00
parent dee4f2470b
commit 6531738b2e
3 changed files with 10 additions and 3 deletions

View File

@@ -105,8 +105,14 @@ func updateRepoRunsNumbers(ctx context.Context, repo *repo_model.Repository) err
builder.Select("count(*)").From("bots_run").
Where(builder.Eq{
"repo_id": repo.ID,
"status": StatusFailure,
},
}.And(
builder.In("status",
StatusSuccess,
StatusFailure,
StatusCancelled,
StatusSkipped,
),
),
),
).
Update(repo)