Skip to content

Commit 06d4dd1

Browse files
committed
for now don't search by type name
1 parent 3527a68 commit 06d4dd1

1 file changed

Lines changed: 4 additions & 10 deletions

File tree

spec/controllers/assets_spec.cr

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,10 @@ module PlaceOS::Api
6161
.any?(doc.id)
6262
found.should be_false
6363

64-
# search for asset using the asset type name
65-
type_name = doc.asset_type.not_nil!.name
66-
params = HTTP::Params.encode({"q" => type_name})
67-
path = "#{Assets.base_route.rstrip('/')}?#{params}"
68-
response = client.exec(method: "GET", path: path, headers: headers)
69-
found = Array(Hash(String, JSON::Any))
70-
.from_json(response.body)
71-
.map(&.["id"].to_s)
72-
.any?(doc.id)
73-
found.should be_true
64+
# TODO:: search for asset using the asset type name
65+
# type_name = doc.asset_type.not_nil!.name
66+
# params = HTTP::Params.encode({"q" => type_name})
67+
# path = "#{Assets.base_route.rstrip('/')}?#{params}"
7468
end
7569
end
7670

0 commit comments

Comments
 (0)