From 75970295b324dfd155336460f220fc2a6a2f3b4b Mon Sep 17 00:00:00 2001 From: Pavel Date: Fri, 10 May 2024 11:51:56 +0300 Subject: [PATCH] create field text or file --- internal/tools/for_rules.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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}) } } }