closed #78
This commit is contained in:
@@ -47,15 +47,15 @@ extension AppDelegate: UNUserNotificationCenterDelegate {
|
||||
|
||||
switch action {
|
||||
case .horrible:
|
||||
PersistenceController.shared.add(mood: .horrible, forDate: date)
|
||||
PersistenceController.shared.add(mood: .horrible, forDate: date, entryType: .notification)
|
||||
case .bad:
|
||||
PersistenceController.shared.add(mood: .bad, forDate: date)
|
||||
PersistenceController.shared.add(mood: .bad, forDate: date, entryType: .notification)
|
||||
case .average:
|
||||
PersistenceController.shared.add(mood: .average, forDate: date)
|
||||
PersistenceController.shared.add(mood: .average, forDate: date, entryType: .notification)
|
||||
case .good:
|
||||
PersistenceController.shared.add(mood: .good, forDate: date)
|
||||
PersistenceController.shared.add(mood: .good, forDate: date, entryType: .notification)
|
||||
case .great:
|
||||
PersistenceController.shared.add(mood: .great, forDate: date)
|
||||
PersistenceController.shared.add(mood: .great, forDate: date, entryType: .notification)
|
||||
}
|
||||
UIApplication.shared.applicationIconBadgeNumber = 0
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user