Skip to content

Commit

Permalink
fefactor: updated code with suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
naqvis committed Dec 12, 2024
1 parent c8aa0db commit ff9985a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions shard.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ shards:

action-controller:
git: https://github.com/spider-gazelle/action-controller.git
version: 7.5.0
version: 7.5.1

active-model:
git: https://github.com/spider-gazelle/active-model.git
Expand Down Expand Up @@ -231,7 +231,7 @@ shards:

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

placeos-core-client: # Overridden
git: https://github.com/placeos/core-client.git
Expand All @@ -243,7 +243,7 @@ shards:

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

placeos-log-backend:
git: https://github.com/place-labs/log-backend.git
Expand Down Expand Up @@ -307,7 +307,7 @@ shards:

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

secrets-env: # Overridden
git: https://github.com/spider-gazelle/secrets-env.git
Expand Down
4 changes: 2 additions & 2 deletions src/placeos-rest-api/controllers/asset_types.cr
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module PlaceOS::Api
###############################################################################################

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

# show the selected asset type
Expand Down

0 comments on commit ff9985a

Please sign in to comment.