mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 11:50:04 -06:00
🎨 Support doc/snapshot history for database table view https://github.com/siyuan-note/siyuan/issues/9567
This commit is contained in:
@@ -255,8 +255,10 @@ func RollbackDocHistory(boxID, historyPath string) (err error) {
|
||||
for _, avNode := range avNodes {
|
||||
srcAvPath := filepath.Join(historyDir, "storage", "av", avNode.AttributeViewID+".json")
|
||||
destAvPath := filepath.Join(util.DataDir, "storage", "av", avNode.AttributeViewID+".json")
|
||||
if copyErr := filelock.CopyNewtimes(srcAvPath, destAvPath); nil != copyErr {
|
||||
logging.LogErrorf("copy av [%s] failed: %s", srcAvPath, copyErr)
|
||||
if gulu.File.IsExist(destAvPath) {
|
||||
if copyErr := filelock.CopyNewtimes(srcAvPath, destAvPath); nil != copyErr {
|
||||
logging.LogErrorf("copy av [%s] failed: %s", srcAvPath, copyErr)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user