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

This commit is contained in:
KMY(雪あすか) 2024-12-03 18:06:44 +09:00 committed by GitHub
parent 11788f91a3
commit d18023f164
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
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