Can not update app because it was purchased with a different apple id
I just changed my apple id on iPhone.
It is obvious that I need my old apple id and password to update an app that was purchased with that old id which I am not currently using.
I entered the old apple id into the iPhone but still its not updating the app.
help !!
iPhone 6, iOS 12