This commit is contained in:
Kenneth Kehl
2025-01-30 14:30:06 -08:00
parent 78b5f90f67
commit e59e3429e4

View File

@@ -276,7 +276,7 @@ def get_recent_notifications_for_job(
stmt = select(Notification).where(
Notification.service_id == service_id,
Notification.job_id == job_id,
Notification.status in [NotificationStatus.FAILED, Notification.DELIVERED],
Notification.status in [NotificationStatus.FAILED, NotificationStatus.DELIVERED],
)
stmt = _filter_query(stmt, filter_dict)
stmt = stmt.order_by(desc(Notification.job_row_number))