mirror of
https://github.com/hanzoai/bot.git
synced 2026-11-01 07:38:30 +00:00
Automated rebrand of all openclaw references to hanzo bot: - Package: openclaw -> @hanzo/bot - Binary: openclaw -> hanzo-bot - Config: ~/.openclaw -> ~/.hanzo/bot - Docker: ghcr.io/hanzoai/bot - Env vars: OPENCLAW_* -> BOT_* - Bundle IDs: ai.hanzo.bot.* - Product name: Hanzo Bot
24 lines
674 B
Swift
24 lines
674 B
Swift
import Foundation
|
|
import Hanzo BotProtocol
|
|
|
|
extension CronSettings {
|
|
func save(payload: [String: AnyCodable]) async {
|
|
guard !self.isSaving else { return }
|
|
self.isSaving = true
|
|
self.editorError = nil
|
|
do {
|
|
try await self.store.upsertJob(id: self.editingJob?.id, payload: payload)
|
|
await MainActor.run {
|
|
self.isSaving = false
|
|
self.showEditor = false
|
|
self.editingJob = nil
|
|
}
|
|
} catch {
|
|
await MainActor.run {
|
|
self.isSaving = false
|
|
self.editorError = error.localizedDescription
|
|
}
|
|
}
|
|
}
|
|
}
|