Skip to content

Commit 2f06a62

Browse files
committed
refactor(person): remove unnecessary text translations from event includes
1 parent ad0d317 commit 2f06a62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/models/better_together/person.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def all_calendar_events # rubocop:todo Metrics/AbcSize, Metrics/MethodLength
199199

200200
# Single query to fetch all events with necessary includes
201201
if event_ids.any?
202-
Event.includes(:string_translations, :text_translations)
202+
Event.includes(:string_translations)
203203
.where(id: event_ids.to_a)
204204
.to_a
205205
else

0 commit comments

Comments
 (0)