Skip to content

Commit c19bfa3

Browse files
Loïc Dacharyrealaravinth
Loïc Dachary
authored andcommitted
also update stats when restoring pull requests
Signed-off-by: Loïc Dachary <loic@dachary.org>
1 parent d606fba commit c19bfa3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

models/migrate.go

+4
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,10 @@ func InsertPullRequests(prs ...*PullRequest) error {
148148
}
149149
}
150150

151+
err = UpdateRepoStats(ctx, prs[0].Issue.RepoID)
152+
if err != nil {
153+
return err
154+
}
151155
return committer.Commit()
152156
}
153157

0 commit comments

Comments
 (0)