#Bug with Patch Subscriber

1 messages · Page 1 of 1 (latest)

lavish slate
#

Hello,

I have this code

    notifications_api = session.get_notifications()
    subscriber = SubscriberDto(
        subscriber_id=body.user_id,
        phone=body.phone
    )
    await notifications_api.update_subscriber(subscriber)
    # Do something temporary with the number
    subscriber = SubscriberDto(
        subscriber_id=body.user_id,
        phone=None
    )
    await notifications_api.update_subscriber(subscriber)

It works fine, however instead of deleting the phone, it deletes the email. I don't think that is how it supposed to have worked.

wary fractalBOT
#

@lavish slate, you just advanced to level 1!

summer jewel
#

@lavish slate

Thanks for sharing.

#

Is above code of python SDK?

lavish slate
#

Yes

summer jewel
#

@lavish slate

We will revert back to you after checking with python sdk maintainer
cc:- @south plume