Project.mirror.where("mirror_last_successful_update_at + #{Gitlab::Database.minute_interval('sync_time')} <= ? OR sync_time IN (?)",DateTime.now,Gitlab::Mirror.sync_times)
RemoteMirror.where("last_successful_update_at + #{Gitlab::Database.minute_interval('sync_time')} <= ? OR sync_time IN (?)",DateTime.now,Gitlab::Mirror.sync_times)
let(:mirrors){Project.mirror.where("mirror_last_successful_update_at + #{Gitlab::Database.minute_interval('sync_time')} <= ? OR sync_time IN (?)",time,Gitlab::Mirror.sync_times)}
let(:mirrors){RemoteMirror.where("last_successful_update_at + #{Gitlab::Database.minute_interval('sync_time')} <= ? OR sync_time IN (?)",time,Gitlab::Mirror.sync_times)}