I have read the following:-
The entropy change of the environment is calculated by $\Delta S_{env}=-\int \frac{dq_{sys}}{T} $ for that process. Unlike for a system, we do not assume a reversible path connecting the endpoints and then integrate.
For an isochoric process $dq_{sys}=dU_{sys}=nC_vdT$
Now, we plug this into the integral and get $\Delta S_{env}=-nC_v\ln( \frac{T_f}{T_i} )$
$\Delta S_{universe}=\Delta S_{sys}+\Delta S_{env}$
Now, $\Delta S_{sys}=nC_v\ln( \frac{T_f}{T_i} )$ so $\Delta S_{universe}=0$
However, this is wrong because $\Delta S_{universe}\neq0$ for an irreversible process
Where is the mistake in this proof?