Fix issue updates

This commit is contained in:
Chongyi Zheng 2022-07-15 17:04:16 -04:00
parent 9f5721fa95
commit 9ac5518ee6
No known key found for this signature in database
GPG Key ID: CC2953E050C19686
1 changed files with 4 additions and 1 deletions

View File

@ -222,7 +222,10 @@ func updateIssue(ctx context.Context, issue *issues_model.Issue) error {
func upsertIssue(ctx context.Context, issue *issues_model.Issue) (isInsert bool, err error) {
sess := db.GetEngine(ctx)
exists, err := sess.Exist(&issues_model.Issue{ID: issue.ID})
exists, err := sess.Exist(&issues_model.Issue{
RepoID: issue.RepoID,
Index: issue.Index,
})
if err != nil {
return false, err
}