function updateTeam(team, updatedTeam, user, headers) {
        // Make a copy of the original team for auditing purposes
        let originalTeam = Team.auditCopy(team);

        // Update the updated date