Explorar o código

fix: postgreSQL search engine error during page move (#1181)

NGPixel %!s(int64=5) %!d(string=hai) anos
pai
achega
3183014b25
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      server/modules/search/postgres/engine.js

+ 1 - 1
server/modules/search/postgres/engine.js

@@ -127,7 +127,7 @@ module.exports = {
   async renamed(page) {
     await WIKI.models.knex('pagesVector').where({
       locale: page.localeCode,
-      path: page.sourcePath
+      path: page.path
     }).update({
       locale: page.destinationLocaleCode,
       path: page.destinationPath