Identify comment by original_id only

This commit is contained in:
harryzcy 2023-07-21 19:32:22 -05:00
parent 3d9b7edd35
commit f7e94224d6
No known key found for this signature in database
GPG Key ID: E3C2287691E40E35
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ func UpsertIssueComments(comments []*issues_model.Comment) error {
}
} else {
if _, err := sess.NoAutoTime().Where(
"issue_id = ? AND original_id = ?", comment.IssueID, comment.OriginalID,
"original_id = ?", comment.IssueID, comment.OriginalID,
).Update(comment); err != nil {
return err
}