Add entity_id in required_fields of copy.

pull/782/head
Andrey 2023-05-01 13:04:09 +03:00
rodzic 24cccddb99
commit c13ece0580
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -783,7 +783,7 @@ def fix_duplicates_keys_in_entity_subscription():
# get entity id
entity_id = entity.entity_data["entity_id"]
entity_id = entity.entity_id
# get entity type
@ -814,6 +814,7 @@ def fix_duplicates_keys_in_entity_subscription():
new_required_fields.append(
{"type": "copy_of_malformed_entity_20230213"}
)
new_required_fields.append({"entity_id": entity_id})
ec.add_entity(
token=MOONSTREAM_ADMIN_ACCESS_TOKEN,
collection_id=collection_id,