This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Fix unchecked error bug (
#2110
)
tags/v1.21.12.1
Ethan Koenig
Lunny Xiao
8 years ago
parent
2fd039864b
commit
a52cd59727
1 changed files
with
4 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-1
models/issue_comment.go
+ 4
- 1
models/issue_comment.go
View File
@@ -668,7 +668,10 @@ func DeleteComment(comment *Comment) error {
return err
}
}
sess.Where("comment_id = ?", comment.ID).Cols("is_deleted").Update(&Action{IsDeleted: true})
if _, err := sess.Where("comment_id = ?", comment.ID).Cols("is_deleted").Update(&Action{IsDeleted: true}); err != nil {
return err
}
return sess.Commit()
}
Write
Preview
Loading…
Cancel
Save