Skip to content
Snippets Groups Projects
Commit 88bf524c4346 authored by Katia Saurfelt's avatar Katia Saurfelt
Browse files

[hook] cleaning: `parent` arg is no more used

parent 9e877d975a94
No related branches found
No related tags found
No related merge requests found
......@@ -99,10 +99,6 @@
# kwargs below must be container data.
kwargs['id'] = json['eid']
kwargs['doc_type'] = getattr(serializer, 'doc_type', json['cw_etype'])
if json.get('parent'):
kwargs['parent'] = json.pop('parent')
else: # TODO only for types that have parents
kwargs['routing'] = entity.eid
try:
# TODO option for async ?
es.index(**kwargs)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment