mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-03 18:01:08 -05:00
update schema to use template_history for accurate template details
only in the public notification endpoint so far for fear of breaking things - in an ideal world i'd remove the template relationship from models entirely and replace that with actual_template
This commit is contained in:
@@ -391,7 +391,7 @@ def get_notifications_for_service(service_id,
|
||||
query = Notification.query.filter(*filters)
|
||||
query = _filter_query(query, filter_dict)
|
||||
if personalisation:
|
||||
query.options(
|
||||
query = query.options(
|
||||
joinedload('actual_template')
|
||||
)
|
||||
return query.order_by(desc(Notification.created_at)).paginate(
|
||||
|
||||
Reference in New Issue
Block a user