forked from forgejo/forgejo
Refactor notification for indexer (#5111)
* notification for indexer * use NullNotifier as parent struct
This commit is contained in:
parent
477a80f658
commit
82e08a3364
8 changed files with 75 additions and 15 deletions
|
@ -117,9 +117,7 @@ func updateNeededCols(cols []string) bool {
|
|||
// UpdateIssueIndexerCols update an issue in the issue indexer, given changes
|
||||
// to the specified columns
|
||||
func UpdateIssueIndexerCols(issueID int64, cols ...string) {
|
||||
if updateNeededCols(cols) {
|
||||
UpdateIssueIndexer(issueID)
|
||||
}
|
||||
updateNeededCols(cols)
|
||||
}
|
||||
|
||||
// UpdateIssueIndexer add/update an issue to the issue indexer
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue