This commit is contained in:
Daniel 2025-03-29 11:47:15 +08:00
parent fde9cbe1cc
commit fc43a81286
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 5 additions and 1 deletions

View file

@ -69,6 +69,8 @@ func moveLocalShorthands(c *gin.Context) {
hPath = path.Join(dir, baseName)
}
// TODO: 改造旧方案,去掉 hPath, parentID改为使用文档树配置项 闪念速记存放位置,参考创建日记实现
// https://github.com/siyuan-note/siyuan/issues/14414
ids, err := model.MoveLocalShorthands(notebook, hPath, parentID)
if err != nil {
ret.Code = -1

View file

@ -44,7 +44,9 @@ func StartCron() {
go every(30*time.Second, model.HookDesktopUIProcJob)
go every(24*time.Hour, model.AutoPurgeRepoJob)
go every(30*time.Minute, model.AutoCheckMicrosoftDefender)
go every(3*time.Second, model.WatchLocalShorthands)
// TODO: 移除旧方案 https://github.com/siyuan-note/siyuan/issues/14414 实现新的刷新机制
//go every(3*time.Second, model.WatchLocalShorthands)
}
func every(interval time.Duration, f func()) {