mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09:00 
			
		
		
		
	Reduce usage of allcols on update (#2596)
* reduce usage of allcols on update * fix bug and tests
This commit is contained in:
		| @@ -101,7 +101,7 @@ func UpdateIssueUsersByMentions(e Engine, issueID int64, uids []int64) error { | ||||
|  | ||||
| 		iu.IsMentioned = true | ||||
| 		if has { | ||||
| 			_, err = e.Id(iu.ID).AllCols().Update(iu) | ||||
| 			_, err = e.Id(iu.ID).Cols("is_mentioned").Update(iu) | ||||
| 		} else { | ||||
| 			_, err = e.Insert(iu) | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user