Improve storage

This commit is contained in:
Christoph Hagen
2024-12-19 16:25:05 +01:00
parent 9c828ff80a
commit 41887a1401
30 changed files with 926 additions and 831 deletions

View File

@ -73,9 +73,7 @@ final class Post: ObservableObject {
@discardableResult
func update(id newId: String) -> Bool {
do {
try content.storage.move(post: id, to: newId)
} catch {
guard content.storage.move(post: id, to: newId) else {
print("Failed to move file of post \(id)")
return false
}