Skip to content

Commit

Permalink
Revert "Make sure checkin still works if reservation added <24 hours …
Browse files Browse the repository at this point in the history
…from flight time"

This reverts commit 890c7bd.
  • Loading branch information
Zac committed Apr 4, 2017
1 parent 890c7bd commit b01dac1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/jobs/checkin_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ class CheckinJob < ActiveJob::Base
queue_as :checkin

def perform(flight)
if flight.departure_time - 1.day > Time.now
sleep(flight.departure_time - 1.day - Time.now)
end
sleep(flight.departure_time - 1.day - Time.now)

checkin = Southwest::Checkin.new(
names: flight.reservation.passengers.map {|p|
Expand Down

0 comments on commit b01dac1

Please sign in to comment.