Fix PR request sync issue

This commit is contained in:
harryzcy 2023-05-16 10:44:56 +08:00
parent 82fe9d5a84
commit 81cf9fcebb
No known key found for this signature in database
GPG Key ID: E3C2287691E40E35
1 changed files with 1 additions and 1 deletions

View File

@ -1059,7 +1059,7 @@ func (g *GiteaLocalUploader) PatchPullRequests(prs ...*base.PullRequest) error {
if err != nil {
return err
}
if err := models.InsertPullRequests(gprs...); err != nil {
if err := models.UpsertPullRequests(gprs...); err != nil {
return err
}
for _, pr := range gprs {