mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-08 00:04:21 +01:00
🎨 Supports cleaning up unreferenced databases https://github.com/siyuan-note/siyuan/issues/11569
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
717960b538
commit
efe11801ad
4 changed files with 28 additions and 23 deletions
|
|
@ -349,9 +349,7 @@ func getUnusedAssets(c *gin.Context) {
|
|||
util.PushMsg(fmt.Sprintf(model.Conf.Language(251), total, maxUnusedAssets), 5000)
|
||||
}
|
||||
|
||||
ret.Data = map[string]interface{}{
|
||||
"unusedAssets": unusedAssets,
|
||||
}
|
||||
ret.Data = unusedAssets
|
||||
}
|
||||
|
||||
func getMissingAssets(c *gin.Context) {
|
||||
|
|
@ -359,9 +357,7 @@ func getMissingAssets(c *gin.Context) {
|
|||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
missingAssets := model.MissingAssets()
|
||||
ret.Data = map[string]interface{}{
|
||||
"missingAssets": missingAssets,
|
||||
}
|
||||
ret.Data = missingAssets
|
||||
}
|
||||
|
||||
func resolveAssetPath(c *gin.Context) {
|
||||
|
|
|
|||
|
|
@ -67,9 +67,7 @@ func getUnusedAttributeViews(c *gin.Context) {
|
|||
util.PushMsg(fmt.Sprintf(model.Conf.Language(279), total, maxUnusedAttributeViews), 5000)
|
||||
}
|
||||
|
||||
ret.Data = map[string]interface{}{
|
||||
"unusedAttributeViews": unusedAttributeViews,
|
||||
}
|
||||
ret.Data = unusedAttributeViews
|
||||
}
|
||||
|
||||
func getAttributeViewItemIDsByBoundIDs(c *gin.Context) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue