mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-20 23:41:17 -05:00
separated schemas once more into "with template" and "with personalisation"
"with personalisation" should only be used by the public notification api "with template" should be used when we want template name, etc details. also added an xfail test for correctly constructing notification personalisation
This commit is contained in:
@@ -22,7 +22,7 @@ from app.schemas import (
|
||||
job_schema,
|
||||
unarchived_template_schema,
|
||||
notifications_filter_schema,
|
||||
notification_schema
|
||||
notification_with_template_schema
|
||||
)
|
||||
|
||||
from app.celery.tasks import process_job
|
||||
@@ -62,7 +62,7 @@ def get_all_notifications_for_service_job(service_id, job_id):
|
||||
kwargs['service_id'] = service_id
|
||||
kwargs['job_id'] = job_id
|
||||
return jsonify(
|
||||
notifications=notification_schema.dump(pagination.items, many=True).data,
|
||||
notifications=notification_with_template_schema.dump(pagination.items, many=True).data,
|
||||
page_size=page_size,
|
||||
total=pagination.total,
|
||||
links=pagination_links(
|
||||
|
||||
Reference in New Issue
Block a user