Skip to content

Commit

Permalink
Fix: 特定のアカウントを登録したアンテナ除外条件のリスト取得APIでエラー (#923)
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode authored Dec 3, 2024
1 parent 69f679e commit c20b098
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class Api::V1::Accounts::ExcludeAntennasController < Api::BaseController
before_action :set_account

def index
@antennas = @account.suspended? ? [] : current_account.antennas.where('exclude_accounts @> \'[?]\'', @account.id)
@antennas = @account.suspended? ? [] : current_account.antennas.where("exclude_accounts @> '#{@account.id}'")
render json: @antennas, each_serializer: REST::AntennaSerializer
end

Expand Down

0 comments on commit c20b098

Please sign in to comment.