create field text or file
This commit is contained in:
parent
8097e79fed
commit
75970295b3
@ -60,7 +60,11 @@ func ToCreatedUpdateQuestionRules(questionsTypeMap map[model.EntityType][]model.
|
|||||||
|
|
||||||
if !matched {
|
if !matched {
|
||||||
//Type: model.TypeMapping[question.Type]
|
//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})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user