mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
✨ 数据仓库支持云端备份 https://github.com/siyuan-note/siyuan/issues/5336
This commit is contained in:
parent
0a0356f6f2
commit
c4652a9c66
1 changed files with 8 additions and 2 deletions
|
|
@ -241,7 +241,7 @@ func UploadCloudSnapshot(tag, id string) (err error) {
|
|||
return
|
||||
}
|
||||
|
||||
func GetCloudRepoTagSnapshots() (tags []*dejavu.Log, err error) {
|
||||
func GetCloudRepoTagSnapshots() (ret []*dejavu.Log, err error) {
|
||||
if 1 > len(Conf.Repo.Key) {
|
||||
err = errors.New(Conf.Language(26))
|
||||
return
|
||||
|
|
@ -256,7 +256,10 @@ func GetCloudRepoTagSnapshots() (tags []*dejavu.Log, err error) {
|
|||
if nil != err {
|
||||
return
|
||||
}
|
||||
tags, err = repo.GetCloudRepoTagLogs(cloudInfo, map[string]interface{}{CtxPushMsg: CtxPushMsgToStatusBar})
|
||||
ret, err = repo.GetCloudRepoTagLogs(cloudInfo, map[string]interface{}{CtxPushMsg: CtxPushMsgToStatusBar})
|
||||
if 1 > len(ret) {
|
||||
ret = []*dejavu.Log{}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
@ -272,6 +275,9 @@ func GetTagSnapshots() (ret []*dejavu.Log, err error) {
|
|||
}
|
||||
|
||||
ret, err = repo.GetTagLogs()
|
||||
if 1 > len(ret) {
|
||||
ret = []*dejavu.Log{}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue