How To Update Socket Location When Switching Mesh

I have weapon meshes that I switch to in my game, they have the same two sockets for the start and beginning for the anim trail but when I switch these meshes the socket location does not update and the anim trail isn’t aligned properly.

How do I go about updating the socket location?

Any help would be appreciated thanks!