diff --git a/repository/test.file.handler.go b/repository/test.file.handler.go index a5ea77e..8057e82 100644 --- a/repository/test.file.handler.go +++ b/repository/test.file.handler.go @@ -31,11 +31,11 @@ func TestFilesHandlerCron() { }) index := 0 for { - if strings.Contains(strings.ToUpper(fileTexts[index].Name), "SUMMARY") { - index++ - continue - } if index+1 < len(fileTexts) { + if strings.Contains(strings.ToUpper(fileTexts[index].Name), "SUMMARY") { + index++ + continue + } test_data.MT737(fileTexts[index+1], fileTexts[index]) global.PostGreSQL.Transaction(func(tx *gorm.DB) error { tx.Model(&fileTexts[index+1]).Updates(map[string]interface{}{