mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-28 20:38:49 +01:00
🎨 改进同步后台任务
This commit is contained in:
parent
95ef384cde
commit
f3547465c1
1 changed files with 4 additions and 2 deletions
|
|
@ -47,9 +47,11 @@ var (
|
|||
)
|
||||
|
||||
func SyncDataJob() {
|
||||
if time.Now().After(syncPlanTime) {
|
||||
SyncData(false, false, false)
|
||||
if time.Now().Before(syncPlanTime) {
|
||||
return
|
||||
}
|
||||
|
||||
SyncData(false, false, false)
|
||||
}
|
||||
|
||||
func BootSyncData() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue