fix nfc add customer flow
This commit is contained in:
@@ -58,9 +58,9 @@ class Booking < ApplicationRecord
|
||||
end
|
||||
end
|
||||
|
||||
scope :active, -> {where("booking_status != 'moved'")}
|
||||
scope :today, -> {where("created_at >= #{Time.now.utc}")}
|
||||
scope :assign, -> { where(booking_status: 'assign')}
|
||||
scope :active, -> { where('booking_status != ?', 'moved') }
|
||||
scope :today, -> { where('created_at >= ?', Time.now) }
|
||||
scope :assign, -> { where(booking_status: 'assign') }
|
||||
|
||||
def self.sync_booking_records(bookings)
|
||||
if !bookings.nil?
|
||||
|
||||
Reference in New Issue
Block a user