Skip to content

Commit d3f439d

Browse files
authored
fix(asset_types): [PPT-1631] use single = in sql (#408)
1 parent 8670fcd commit d3f439d

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/placeos-rest-api/controllers/asset_types.cr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ module PlaceOS::Api
5252
zone_id : String? = nil,
5353
) : String
5454
conditions = [] of String
55-
conditions << "at.brand == '#{brand}'" if brand
56-
conditions << "at.model_number == '#{model_number}'" if model_number
57-
conditions << "at.category_id == '#{category_id}'" if category_id
55+
conditions << "at.brand = '#{brand}'" if brand
56+
conditions << "at.model_number = '#{model_number}'" if model_number
57+
conditions << "at.category_id = '#{category_id}'" if category_id
5858
conditions << "a.zone_id = '#{zone_id}'" if zone_id
5959

6060
where = conditions.empty? ? "" : "AND #{conditions.join(" AND ")}"

0 commit comments

Comments
 (0)