This commit is contained in:
Sotirios Pupakis
2025-09-07 00:01:09 +02:00
parent cd4955ea70
commit 557eedf02f
2 changed files with 1 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ func GetNextToBeIndexed(c *gin.Context) {
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 {
c.JSON(500, gin.H{"error": ret.Error.Error()})
return