mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-07 17:28:50 +01:00
🎨 Support doc/snapshot history for database table view https://github.com/siyuan-note/siyuan/issues/9567
This commit is contained in:
parent
7c4d8ec7d4
commit
59dcc2637a
1 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue