mirror of
https://codeberg.org/davrot/forgejo.git
synced 2025-05-17 14:00:01 +02:00
Remove unnecessary IssueList attribute loads (#2936)
This commit is contained in:
parent
10b54df2b2
commit
0f6dc411df
2 changed files with 16 additions and 9 deletions
|
@ -49,6 +49,9 @@ func populateIssueIndexer() error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err = IssueList(issues).LoadComments(); err != nil {
|
||||
return err
|
||||
}
|
||||
for _, issue := range issues {
|
||||
if err := batch.Add(issue.update()); err != nil {
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue