From c19bfa341f2f6c90b4ae91bc76cc979a2eedbd41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Dachary?= Date: Mon, 17 Jan 2022 12:24:08 +0100 Subject: [PATCH] also update stats when restoring pull requests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Loïc Dachary --- models/migrate.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/models/migrate.go b/models/migrate.go index 1422723c854e..4da426887bfe 100644 --- a/models/migrate.go +++ b/models/migrate.go @@ -148,6 +148,10 @@ func InsertPullRequests(prs ...*PullRequest) error { } } + err = UpdateRepoStats(ctx, prs[0].Issue.RepoID) + if err != nil { + return err + } return committer.Commit() }