merge with r-19
This commit is contained in:
@@ -19,7 +19,7 @@ class ShiftSale < ApplicationRecord
|
||||
|
||||
def self.current_shift
|
||||
# today_date = DateTime.now.strftime("%Y-%m-%d")
|
||||
shift = ShiftSale.where("shift_started_at is not null and shift_closed_at is null").first
|
||||
shift = ShiftSale.where.not(shift_started_at: nil).where(shift_closed_at: nil).first
|
||||
return shift
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user