浏览代码

fix: "undefined" error on deletePage by git storage (#2132)

TakeruDMC 5 年之前
父节点
当前提交
cf3a48a6fa
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      server/modules/storage/git/storage.js

+ 1 - 0
server/modules/storage/git/storage.js

@@ -184,6 +184,7 @@ module.exports = {
 
           const contentPath = pageHelper.getPagePath(item.relPath)
           await WIKI.models.pages.deletePage({
+            user: user,
             path: contentPath.path,
             locale: contentPath.locale,
             skipStorage: true