UpdateRepositoryUnits was moved to repo_service by a refactor that was not cherry-picked. (Fix schedule tasks bugs (#28691) (#28780))
This commit is contained in:
parent
2051763969
commit
df98757424
|
@ -220,7 +220,7 @@ func TestCreateDeleteRefEvent(t *testing.T) {
|
||||||
assert.NotEmpty(t, repo)
|
assert.NotEmpty(t, repo)
|
||||||
|
|
||||||
// enable actions
|
// enable actions
|
||||||
err = repo_service.UpdateRepositoryUnits(db.DefaultContext, repo, []repo_model.RepoUnit{{
|
err = repo_model.UpdateRepositoryUnits(repo, []repo_model.RepoUnit{{
|
||||||
RepoID: repo.ID,
|
RepoID: repo.ID,
|
||||||
Type: unit_model.TypeActions,
|
Type: unit_model.TypeActions,
|
||||||
}}, nil)
|
}}, nil)
|
||||||
|
|
Loading…
Reference in New Issue