Skip to content

Commit

Permalink
also update stats when restoring pull requests
Browse files Browse the repository at this point in the history
Signed-off-by: Loïc Dachary <loic@dachary.org>
  • Loading branch information
Loïc Dachary authored and realaravinth committed Jan 17, 2022
1 parent d606fba commit c19bfa3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions models/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,10 @@ func InsertPullRequests(prs ...*PullRequest) error {
}
}

err = UpdateRepoStats(ctx, prs[0].Issue.RepoID)
if err != nil {
return err
}
return committer.Commit()
}

Expand Down

0 comments on commit c19bfa3

Please sign in to comment.