We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8670fcd commit d3f439dCopy full SHA for d3f439d
1 file changed
src/placeos-rest-api/controllers/asset_types.cr
@@ -52,9 +52,9 @@ module PlaceOS::Api
52
zone_id : String? = nil,
53
) : String
54
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
+ conditions << "at.brand = '#{brand}'" if brand
+ conditions << "at.model_number = '#{model_number}'" if model_number
+ conditions << "at.category_id = '#{category_id}'" if category_id
58
conditions << "a.zone_id = '#{zone_id}'" if zone_id
59
60
where = conditions.empty? ? "" : "AND #{conditions.join(" AND ")}"
0 commit comments