Swap key and value on phone index

This commit is contained in:
nolash 2021-04-07 08:29:12 +02:00
parent aed58e62df
commit fe07d28193
Signed by untrusted user who does not match committer: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -52,6 +52,6 @@ def edit_user_metadata(blockchain_address: str, data: bytes, engine: str):
@celery_app.task(bind=True, base=CriticalMetadataTask)
def add_phone_pointer(blockchain_address: str, phone: str, engine: str):
identifier = blockchain_address_to_metadata_pointer(blockchain_address=blockchain_address)
phone_metadata_client = PhonePointerMetadata(identifier=identifier, engine=engine)
phone_metadata_client.create(data=phone)
stripped_address = strip_0x(blockchain_address)
phone_metadata_client = PhonePointerMetadata(identifier=phone, engine=engine)
phone_metadata_client.create(data=stripped_address)