do not acces type name through entities but use prequeried types

This commit is contained in:
iLLiCiTiT 2021-01-04 16:53:09 +01:00
parent 68e2648a4c
commit 0a42dcd6e7

View file

@ -466,7 +466,8 @@ class SyncEntitiesFactory:
elif entity_type_low == "task":
# enrich task info with additional metadata
task = {"type": entity["type"]["name"]}
task_type_name = task_type_names_by_id[entity["type_id"]]
task = {"type": task_type_name}
entities_dict[parent_id]["tasks"][entity["name"]] = task
continue