Skip to content

Commit

Permalink
checkin時に呼び出すようにする
Browse files Browse the repository at this point in the history
  • Loading branch information
oshiro3 committed Nov 15, 2024
1 parent b3e531b commit 3c2e372
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/api/v1/check_in_conferences_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ def create
profile = Profile.find(@params[:profileId])
check_in_timestamp = Time.zone.at(@params[:checkInTimestamp])
@check_in = CheckInConference.new(profile:, conference:, check_in_timestamp:, scanner_profile_id: profile.id)
conference = Conference.find_by(abbr: @params[:eventAbbr])
GenerateEntrysheetJob.perform_now(conference.id, @params[:profileId], nil)

if @check_in.save
render(json: @check_in, status: :created)
Expand Down

0 comments on commit 3c2e372

Please sign in to comment.