fix
This commit is contained in:
@@ -20,10 +20,10 @@ func GetNextToBeIndexed(c *gin.Context) {
|
||||
|
||||
checkIndexingTimeout()
|
||||
|
||||
maxFileSizeMB := c.Query("maxFileSizeMB")
|
||||
maxSize := 10_000_000
|
||||
if maxFileSizeMB != "" {
|
||||
if val, err := strconv.Atoi(maxFileSizeMB); err == nil {
|
||||
maxFileSize := c.Query("maxFileSize")
|
||||
maxSize := 10_000_000_000
|
||||
if maxFileSize != "" {
|
||||
if val, err := strconv.Atoi(maxFileSize); err == nil {
|
||||
maxSize = val
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user