diff --git a/internal/tools/for_rules.go b/internal/tools/for_rules.go index 9d87524..6b5ab07 100644 --- a/internal/tools/for_rules.go +++ b/internal/tools/for_rules.go @@ -60,7 +60,11 @@ func ToCreatedUpdateQuestionRules(questionsTypeMap map[model.EntityType][]model. if !matched { //Type: model.TypeMapping[question.Type] - toCreated[entity] = append(toCreated[entity], models.AddLeadsFields{Type: model.TypeAmoText, Name: question.Title}) + fieldType := model.TypeAmoText + if question.Type == model.TypeFile { + fieldType = model.TypeAmoFile + } + toCreated[entity] = append(toCreated[entity], models.AddLeadsFields{Type: fieldType, Name: question.Title}) } } }