This commit is contained in:
Trey t
2025-12-09 23:36:57 -06:00
parent 316513e516
commit 3a10b4b8d6
1586 changed files with 0 additions and 7710 deletions

View File

@@ -1,24 +0,0 @@
//
// PersistenceUPDATE.swift
// Feels
//
// Created by Trey Tartt on 2/18/22.
//
import Foundation
extension PersistenceController {
@discardableResult
public func update(entryDate: Date, withModd mood: Mood) -> Bool {
guard let existingEntry = getEntry(byDate: entryDate) else {
return false
}
existingEntry.setValue(mood.rawValue, forKey: "moodValue")
saveAndRunDataListerners()
EventLogger.log(event: "update_entry")
return true
}
}