fix cleanup
This commit is contained in:
parent
251873face
commit
628295e8ed
|
|
@ -920,7 +920,7 @@ module JamRuby
|
||||||
|
|
||||||
old_adhoc_sessions = "(create_type IS NULL and music_sessions.created_at < NOW() - '24 hour'::INTERVAL)"
|
old_adhoc_sessions = "(create_type IS NULL and music_sessions.created_at < NOW() - '24 hour'::INTERVAL)"
|
||||||
|
|
||||||
MusicSession.where("#{old_scheduled_start} OR #{session_not_finished} OR #{old_adhoc_sessions}").where(old:false).update_all(old: true)
|
MusicSession.where("#{old_scheduled_start} OR #{old_adhoc_sessions}").where(old:false).update_all(old: true)
|
||||||
end
|
end
|
||||||
|
|
||||||
def end_history
|
def end_history
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue