Skip to content

Commit 7b624f8

Browse files
committed
Fix not being able to do analytics with assets
1 parent a01c72e commit 7b624f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

broker/broker.go

+3
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ func convertAssetTemplateToAssetType(template assetTemplate) api.AssetType {
100100

101101
attribute := api.AssetTypeAttribute{
102102
Name: attributeName,
103+
Enable: api.PtrBool(true),
103104
Subtype: subtype,
104105
Min: min,
105106
Max: max,
@@ -154,6 +155,7 @@ func convertAssetTemplateToAssetType(template assetTemplate) api.AssetType {
154155
}
155156
attribute := api.AssetTypeAttribute{
156157
Name: attributeName,
158+
Enable: api.PtrBool(true),
157159
Subtype: subtype,
158160
Min: min,
159161
Max: max,
@@ -177,6 +179,7 @@ func convertAssetTemplateToAssetType(template assetTemplate) api.AssetType {
177179
apiAsset.Attributes = append(apiAsset.Attributes, api.AssetTypeAttribute{
178180
Name: masterPropertyAttribute,
179181
Subtype: api.SUBTYPE_PROPERTY,
182+
Enable: api.PtrBool(true),
180183
IsDigital: *api.NewNullableBool(api.PtrBool(true)),
181184
Map: []map[string]any{
182185
{

0 commit comments

Comments
 (0)