mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	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:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							9799a03d79
						
					
				
				
					commit
					c7d9a4784e
				
			@@ -714,7 +714,7 @@ class MissedMessageWorker(QueueProcessingWorker):
 | 
				
			|||||||
        with transaction.atomic():
 | 
					        with transaction.atomic():
 | 
				
			||||||
            events_to_process = ScheduledMessageNotificationEmail.objects.filter(
 | 
					            events_to_process = ScheduledMessageNotificationEmail.objects.filter(
 | 
				
			||||||
                scheduled_timestamp__lte=current_time
 | 
					                scheduled_timestamp__lte=current_time
 | 
				
			||||||
            ).select_related()
 | 
					            )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            # Batch the entries by user
 | 
					            # Batch the entries by user
 | 
				
			||||||
            events_by_recipient: Dict[int, List[Dict[str, Any]]] = {}
 | 
					            events_by_recipient: Dict[int, List[Dict[str, Any]]] = {}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user