Browse Source

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

pull/2199/head
TakeruDMC 4 years ago
committed by GitHub
parent
commit
cf3a48a6fa
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. 1
      server/modules/storage/git/storage.js

1
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

Loading…
Cancel
Save