Merge remote-tracking branch 'upstream/main'

This commit is contained in:
Essem 2024-07-10 09:41:37 -05:00
commit 4aa2f92bef
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C
125 changed files with 706 additions and 243 deletions

View file

@ -8,7 +8,7 @@ class Api::V1::Polls::VotesController < Api::BaseController
before_action :set_poll
def create
VoteService.new.call(current_account, @poll, vote_params[:choices])
VoteService.new.call(current_account, @poll, vote_params)
render json: @poll, serializer: REST::PollSerializer
end
@ -22,6 +22,6 @@ class Api::V1::Polls::VotesController < Api::BaseController
end
def vote_params
params.permit(choices: [])
params.require(:choices)
end
end