An employee recently left the company (say Company 1) and joined elsewhere (say Company 2). The new company (Company 2) that he joined has allowed permanent work from home. So, he completed some of the tasks of the new company (Company 2). After that my manager called him and asked him to work for him (in Company 1), and he agreed without any penny from the old company (Company 1). He was working in React & Node JS (in Company 2), and now he is working in Angular and Java (in Company 1).
Well, that is none of my concern. Until, the manager gave him more tasks than me. My experience and knowledge in Angular is as much as him, if not more. But, still I am being denied for the project that my manager had initally assigned me to do. Now for two weeks, while he is almost leading the project, along with the Manager's nephew, who has less than 1 year of experience, I am not even allowed to attend meetings with the client who was going to explain the workflow.
In many cases, this employee, along with the Manager's nephew, do not follow industry standard coding structure, which will posses problem during maintainance of the project.
I am afraid that either the company is going to fire me, because they got a free employee, or something else is going on.
How can I re-affirm my position in the company.