diff --git a/app/service/rest.py b/app/service/rest.py index 39e6800d9..e9c72884e 100644 --- a/app/service/rest.py +++ b/app/service/rest.py @@ -326,7 +326,7 @@ def get_notification_for_service(service_id, notification_id): def search_for_notification_by_to_field(service_id, search_term, statuses): results = notifications_dao.dao_get_notifications_by_to_field(service_id, search_term, statuses) return jsonify( - notifications=notification_with_personalisation_schema.dump(results, many=True).data + notifications=notification_with_template_schema.dump(results, many=True).data ), 200