diff --git a/models/migrations/v67.go b/models/migrations/v67.go index 8a46112dd..278221919 100644 --- a/models/migrations/v67.go +++ b/models/migrations/v67.go @@ -83,6 +83,7 @@ func removeStaleWatches(x *xorm.Engine) error { if _, err := x.Get(repo); err != nil { return err } + repoCache[watch.RepoID] = repo } // Remove watches from now unaccessible repositories @@ -123,6 +124,7 @@ func removeStaleWatches(x *xorm.Engine) error { if _, err := x.Get(repo); err != nil { return err } + repoCache[watch.RepoID] = repo } // Remove issue watches from now unaccssible repositories