create field text or file

This commit is contained in:
Pavel 2024-05-10 11:51:56 +03:00
parent 8097e79fed
commit 75970295b3

@ -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})
}
}
}