Skip to content

Commit 75c5d28

Browse files
committed
fix: support multiple categories on equipment
1 parent a93f9b3 commit 75c5d28

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/kotlin/com/ctrlhub/core/assets/equipment/resource/EquipmentResources.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ class EquipmentModel @JsonCreator constructor(
5454
@JsonProperty("description") var description: String? = null,
5555
@JsonProperty("specification") var specification: EquipmentModelSpecification? = null,
5656

57-
@Relationship("category")
58-
var category: EquipmentCategory? = null,
57+
@Relationship("categories")
58+
var categories: List<EquipmentCategory> = emptyList(),
5959

6060
@Relationship("manufacturer")
6161
var manufacturer: EquipmentManufacturer? = null,
@@ -65,7 +65,7 @@ class EquipmentModel @JsonCreator constructor(
6565
name = "",
6666
description = null,
6767
specification = null,
68-
category = null,
68+
categories = emptyList(),
6969
manufacturer = null
7070
)
7171
}

0 commit comments

Comments
 (0)