Skip to content

Commit ff9985a

Browse files
committed
fefactor: updated code with suggestions
1 parent c8aa0db commit ff9985a

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

shard.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ shards:
77

88
action-controller:
99
git: https://github.com/spider-gazelle/action-controller.git
10-
version: 7.5.0
10+
version: 7.5.1
1111

1212
active-model:
1313
git: https://github.com/spider-gazelle/active-model.git
@@ -231,7 +231,7 @@ shards:
231231

232232
placeos-core:
233233
git: https://github.com/placeos/core.git
234-
version: 4.17.0+git.commit.5eb725ab98bf52775512f7938b468c28e6ccde45
234+
version: 4.17.0+git.commit.ec2fd1b2be563172b9ddc6de626870b7fd68c674
235235

236236
placeos-core-client: # Overridden
237237
git: https://github.com/placeos/core-client.git
@@ -243,7 +243,7 @@ shards:
243243

244244
placeos-frontend-loader:
245245
git: https://github.com/placeos/frontend-loader.git
246-
version: 2.7.1+git.commit.a8bf2b8c4489693405e7be59eb07dd8d103d14d4
246+
version: 2.7.1+git.commit.0870660239fcc8dec3a75bfc4f5825df9ade9559
247247

248248
placeos-log-backend:
249249
git: https://github.com/place-labs/log-backend.git
@@ -307,7 +307,7 @@ shards:
307307

308308
search-ingest:
309309
git: https://github.com/placeos/search-ingest.git
310-
version: 2.11.2+git.commit.6fc646dfeb8ef4157d35a64496d5824dbdc25659
310+
version: 2.11.2+git.commit.6b64206b8869d59cf5332e297004ab60713ebb1f
311311

312312
secrets-env: # Overridden
313313
git: https://github.com/spider-gazelle/secrets-env.git

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ module PlaceOS::Api
4040
###############################################################################################
4141

4242
# list the asset types
43-
@[AC::Route::GET("/")]
43+
@[AC::Route::GET("/", response_type: Array(::PlaceOS::Model::AssetType))]
4444
def index(
4545
@[AC::Param::Info(description: "return assets with the provided brand name", example: "Ford")]
4646
brand : String? = nil,
@@ -104,7 +104,7 @@ module PlaceOS::Api
104104
result = PgORM::Database.connection do |db|
105105
db.query_one sql, &.read(JSON::PullParser).read_raw
106106
end
107-
render text: result
107+
render json: result
108108
end
109109

110110
# show the selected asset type

0 commit comments

Comments
 (0)