From ef171915a941ee6620df196c365fe33bcdf21eab Mon Sep 17 00:00:00 2001 From: razeeman Date: Fri, 22 Dec 2023 18:55:29 +0300 Subject: [PATCH] fix category goals not cancelling correctly --- .../goalTime/interactor/NotificationGoalTimeInteractorImpl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/feature_notification/src/main/java/com/example/util/simpletimetracker/feature_notification/goalTime/interactor/NotificationGoalTimeInteractorImpl.kt b/features/feature_notification/src/main/java/com/example/util/simpletimetracker/feature_notification/goalTime/interactor/NotificationGoalTimeInteractorImpl.kt index 02c9709b..b0fa75e9 100644 --- a/features/feature_notification/src/main/java/com/example/util/simpletimetracker/feature_notification/goalTime/interactor/NotificationGoalTimeInteractorImpl.kt +++ b/features/feature_notification/src/main/java/com/example/util/simpletimetracker/feature_notification/goalTime/interactor/NotificationGoalTimeInteractorImpl.kt @@ -140,7 +140,7 @@ class NotificationGoalTimeInteractorImpl @Inject constructor( val runningRecords = runningRecordInteractor.getAll() categoriesWithThisTypes.keys.forEach { categoryId -> - cancel(RecordTypeGoal.IdData.Type(categoryId)) + cancel(RecordTypeGoal.IdData.Category(categoryId)) } // Session -- 2.51.2