Skip to content

Commit ba194fd

Browse files
committed
Explicit about speakers' sort order for a session having multiple speakers
1 parent 8961e13 commit ba194fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/ruby_kaigi.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def self.schedule(event)
4747
else
4848
program_sessions = time_slots.select(&:program_session).sort_by {|s| s.room.grid_position }.map(&:program_session)
4949
type = program_sessions.one? && program_sessions.first.session_format.name == 'Keynote' ? 'keynote' : 'talk'
50-
talks = program_sessions.to_h {|ps| [ps.time_slot.room.name, ps.speakers.first.decorate.social_account] }
50+
talks = program_sessions.to_h {|ps| [ps.time_slot.room.name, ps.speakers.sort_by(&:created_at).first.decorate.social_account] }
5151
{type: type, begin: start_time.strftime('%H:%M'), end: end_time.strftime('%H:%M'), talks: talks}
5252
end
5353
end

0 commit comments

Comments
 (0)