Refactor task usage and profile auto update

This commit is contained in:
世界
2023-09-22 11:32:51 +08:00
parent 390e063f20
commit 3374f8e727
49 changed files with 823 additions and 636 deletions
+2 -2
View File
@@ -3,7 +3,7 @@ import GRDB
import Libbox
public extension Profile {
func updateRemoteProfile() throws {
nonisolated func updateRemoteProfile() async throws {
if type != .remote {
return
}
@@ -15,6 +15,6 @@ public extension Profile {
}
try write(remoteContent)
lastUpdated = Date()
try ProfileManager.update(self)
try await ProfileManager.update(self)
}
}