forked from forgejo/forgejo
Move webhook into models/webhook/ (#17579)
This commit is contained in:
parent
edbaa5d3f0
commit
33fca2b537
47 changed files with 770 additions and 717 deletions
|
@ -8,6 +8,7 @@ import (
|
|||
"context"
|
||||
|
||||
"code.gitea.io/gitea/models"
|
||||
"code.gitea.io/gitea/models/db"
|
||||
"code.gitea.io/gitea/modules/log"
|
||||
"code.gitea.io/gitea/modules/structs"
|
||||
)
|
||||
|
@ -18,7 +19,7 @@ func UpdateMigrationPosterID(ctx context.Context) error {
|
|||
select {
|
||||
case <-ctx.Done():
|
||||
log.Warn("UpdateMigrationPosterID aborted before %s", gitService.Name())
|
||||
return models.ErrCancelledf("during UpdateMigrationPosterID before %s", gitService.Name())
|
||||
return db.ErrCancelledf("during UpdateMigrationPosterID before %s", gitService.Name())
|
||||
default:
|
||||
}
|
||||
if err := updateMigrationPosterIDByGitService(ctx, gitService); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue