Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 42dc987

Browse files
committed
bugfix
1 parent eb5e7a8 commit 42dc987

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

websites/code2/studygolang/src/logic/searcher.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ func (self SearcherLogic) IndexingResource(isAll bool) {
148148
id := 0
149149
for {
150150
resourceList = make([]*model.Resource, 0)
151+
resourceExList = make(map[int]*model.ResourceEx)
152+
151153
err = MasterDB.Where("id>?", id).OrderBy("id ASC").Limit(self.maxRows).Find(&resourceList)
152154
if err != nil {
153155
logger.Errorln("IndexingResource error:", err)

0 commit comments

Comments
 (0)