Revert "Fix schedule tasks bugs (#28691)"

This reverts commit 97292da960.

(cherry picked from commit 83e5eba031)
This commit is contained in:
Earl Warren 2024-01-22 15:07:17 +00:00
parent 4699db575c
commit f6ef8f3819
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
19 changed files with 90 additions and 206 deletions

View file

@ -984,7 +984,7 @@ func updateRepoUnits(ctx *context.APIContext, opts api.EditRepoOption) error {
}
if len(units)+len(deleteUnitTypes) > 0 {
if err := repo_service.UpdateRepositoryUnits(ctx, repo, units, deleteUnitTypes); err != nil {
if err := repo_model.UpdateRepositoryUnits(ctx, repo, units, deleteUnitTypes); err != nil {
ctx.Error(http.StatusInternalServerError, "UpdateRepositoryUnits", err)
return err
}