Browse Source

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

TakeruDMC 4 years ago
parent
commit
cf3a48a6fa
1 changed files with 1 additions and 0 deletions
  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)
           const contentPath = pageHelper.getPagePath(item.relPath)
           await WIKI.models.pages.deletePage({
           await WIKI.models.pages.deletePage({
+            user: user,
             path: contentPath.path,
             path: contentPath.path,
             locale: contentPath.locale,
             locale: contentPath.locale,
             skipStorage: true
             skipStorage: true