Przeglądaj źródła

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

NGPixel 5 lat temu
rodzic
commit
3183014b25
1 zmienionych plików z 1 dodań i 1 usunięć
  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) {
   async renamed(page) {
     await WIKI.models.knex('pagesVector').where({
     await WIKI.models.knex('pagesVector').where({
       locale: page.localeCode,
       locale: page.localeCode,
-      path: page.sourcePath
+      path: page.path
     }).update({
     }).update({
       locale: page.destinationLocaleCode,
       locale: page.destinationLocaleCode,
       path: page.destinationPath
       path: page.destinationPath