mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-18 22:36:10 +01:00
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
e855f92d99
commit
2e3220e2e9
1 changed files with 8 additions and 0 deletions
|
|
@ -251,6 +251,10 @@ func updateRecentDocViewTime(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
if nil == arg["rootID"] {
|
||||
return
|
||||
}
|
||||
|
||||
rootID := arg["rootID"].(string)
|
||||
err := model.UpdateRecentDocViewTime(rootID)
|
||||
if err != nil {
|
||||
|
|
@ -269,6 +273,10 @@ func updateRecentDocOpenTime(c *gin.Context) {
|
|||
return
|
||||
}
|
||||
|
||||
if nil == arg["rootID"] {
|
||||
return
|
||||
}
|
||||
|
||||
rootID := arg["rootID"].(string)
|
||||
err := model.UpdateRecentDocOpenTime(rootID)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue