mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
fix events endpoint
This commit is contained in:
parent
97d93cd622
commit
85d17d62f3
@ -38,7 +38,7 @@ class API::ICalendarController < API::ApiController
|
||||
cals = Icalendar::Calendar.parse(ics)
|
||||
|
||||
cals.first.events.each do |evt|
|
||||
@events.push(evt.merge!(color: i_cal.color))
|
||||
@events.push(evt)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -6,5 +6,4 @@ json.array!(@events) do |event|
|
||||
json.start event.dtstart.iso8601
|
||||
json.end event.dtend.iso8601
|
||||
json.backgroundColor 'white'
|
||||
json.borderColor event.color
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user