fix storing effective profile

This commit is contained in:
Milos Kozak 2021-11-04 15:58:57 +01:00
parent ae2558deef
commit ebeac72e74

View file

@ -89,8 +89,7 @@ class CommandQueue @Inject constructor(
override fun run() {
if (!result.success) {
ErrorHelperActivity.runAlarm(context, result.comment, rh.gs(R.string.failedupdatebasalprofile), R.raw.boluserror)
}
if (result.enacted) {
} else {
repository.createEffectiveProfileSwitch(
EffectiveProfileSwitch(
timestamp = dateUtil.now(),