diff --git a/backoffice/backoffice/workflows/documents.py b/backoffice/backoffice/workflows/documents.py index 862b6e3a..e2240d15 100644 --- a/backoffice/backoffice/workflows/documents.py +++ b/backoffice/backoffice/workflows/documents.py @@ -9,28 +9,7 @@ class WorkflowDocument(Document): id = fields.TextField() workflow_type = fields.KeywordField() - data = fields.ObjectField( - properties={ - "ids": fields.ObjectField( - properties={ - "value": fields.KeywordField(), - "schema": fields.KeywordField(), - } - ), - "name": fields.ObjectField( - properties={ - "value": fields.TextField(), - "preferred_name": fields.TextField(), - } - ), - "email_address": fields.ObjectField( - properties={ - "value": fields.KeywordField(), - "current": fields.BooleanField(), - } - ), - } - ) + data = fields.ObjectField(dynamic=True) decisions = fields.NestedField( properties={