fix
This commit is contained in:
@@ -45,7 +45,7 @@ func GetNextToBeIndexed(c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = initializers.DB.Where("to_be_indexed = ?", true).Where("priority_indexing = ?", true).Order("updated_at asc").First(&addon)
|
ret = initializers.DB.Where("to_be_indexed = ?", true).Where("current_version_size <= ?", maxSize).Order("updated_at asc").First(&addon)
|
||||||
if ret.Error != nil && ret.Error != gorm.ErrRecordNotFound {
|
if ret.Error != nil && ret.Error != gorm.ErrRecordNotFound {
|
||||||
c.JSON(500, gin.H{"error": ret.Error.Error()})
|
c.JSON(500, gin.H{"error": ret.Error.Error()})
|
||||||
return
|
return
|
||||||
|
|||||||
BIN
crawler.db
BIN
crawler.db
Binary file not shown.
Reference in New Issue
Block a user