missed-message: Remove unnecessary select_related().

This was added in ebb4eab0f99d; neither the `user_profile` nor the
`message` attribute are read off of the object.
This commit is contained in:
Alex Vandiver
2023-07-12 16:51:19 +00:00
committed by Tim Abbott
parent 9799a03d79
commit c7d9a4784e

View File

@@ -714,7 +714,7 @@ class MissedMessageWorker(QueueProcessingWorker):
with transaction.atomic():
events_to_process = ScheduledMessageNotificationEmail.objects.filter(
scheduled_timestamp__lte=current_time
).select_related()
)
# Batch the entries by user
events_by_recipient: Dict[int, List[Dict[str, Any]]] = {}