added Commands to evens

This commit is contained in:
Niclas Thobaben 2021-07-18 16:09:25 +02:00
parent 506dcf1323
commit c922eef0db

View file

@ -28,6 +28,8 @@ module.exports = (service) => {
model.command = command.value
model.command.fields = model.command.fields.map(field => {
field.type = javaType.mapJavaType(field.type, service.namespace)
model.imports = model.imports || []
model.imports.push(...field.type.imports)
return field
})
}