I'm trying to compare some field values from the edit form of a node to the published/archived field values. However I'm running to an issue where when im trying to load the Node object using
Drupal::entityTypeManager()->getStorage('node')->load($nid)
It's returning the last saved draft revision. How do i get the Node object of the published/archived revision?
P.S. Content Moderation is turned on, and content type is assigned to a workflow.