fix cleanup

This commit is contained in:
Seth Call 2017-10-19 09:42:08 -05:00
parent 251873face
commit 628295e8ed
1 changed files with 1 additions and 1 deletions

View File

@ -920,7 +920,7 @@ module JamRuby
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
def end_history