You are so wrong. An officer’s oath is to the Constitution. Not to the so-called “president.”
Did you notice that the Constitution appoints the President to be the commander in chief?