summaryrefslogtreecommitdiffstats
path: root/modules/repository/hooks.go
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2021-11-10 13:13:16 +0800
committerGitHub <noreply@github.com>2021-11-10 13:13:16 +0800
commit33fca2b537d36cf998dd27425b2bb8ed5b0965f3 (patch)
tree817f392502e1c176a5cd7e80290520cb940a8416 /modules/repository/hooks.go
parentedbaa5d3f05b5ca397524587ba9db15edd61bc29 (diff)
downloadgitea-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.go2
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:
}