In a conundrum regarding my interests as well as salary and pay

So currently my salary is around 25 lpa I want to upgrade my skills to the tech that my company uses but which i am currently not part of but want to work in like Nodejs and AI UNFORTUNATELY These are huge topics and require massive amount of study and effort At the same time I’m targeting a senior level position at high paying companies that would bump up my pay by 3x but this requires being extremely good in DSA,system design In this dilemma of Interest vs Money what should o choose?