diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2021-11-10 13:13:16 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-10 13:13:16 +0800 |
commit | 33fca2b537d36cf998dd27425b2bb8ed5b0965f3 (patch) | |
tree | 817f392502e1c176a5cd7e80290520cb940a8416 /modules/repository/hooks.go | |
parent | edbaa5d3f05b5ca397524587ba9db15edd61bc29 (diff) | |
download | gitea-33fca2b537d36cf998dd27425b2bb8ed5b0965f3.tar.gz gitea-33fca2b537d36cf998dd27425b2bb8ed5b0965f3.zip |
Move webhook into models/webhook/ (#17579)
Diffstat (limited to 'modules/repository/hooks.go')
-rw-r--r-- | modules/repository/hooks.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/repository/hooks.go b/modules/repository/hooks.go index 63f00b8f80..23eee8897d 100644 --- a/modules/repository/hooks.go +++ b/modules/repository/hooks.go @@ -254,7 +254,7 @@ func SyncRepositoryHooks(ctx context.Context) error { repo := bean.(*models.Repository) select { case <-ctx.Done(): - return models.ErrCancelledf("before sync repository hooks for %s", repo.FullName()) + return db.ErrCancelledf("before sync repository hooks for %s", repo.FullName()) default: } |