Fix: 特定のアカウントを登録したアンテナ除外条件のリスト取得APIでエラー (#923)

This commit is contained in:
KMY(雪あすか) 2024-12-03 17:35:35 +09:00 committed by GitHub
parent 69f679e05b
commit c20b098cfd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -6,7 +6,7 @@ class Api::V1::Accounts::ExcludeAntennasController < Api::BaseController
before_action :set_account before_action :set_account
def index 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 render json: @antennas, each_serializer: REST::AntennaSerializer
end end