wikijs-fork/server/modules
Adrián Martínez Interactiv4 52304a8149
fix: update storage.js to match pageHelper.injectPageMetadata (#2832)
* Update storage.js to match pageHelper.injectPageMetadata

At pageHelper.injectPageMetadata references editorKey and tags to build metadata, but this data seems not to be supplied to this function, since page object is only built from specified columns.

As a result, tags are always empty when exporting pages, and editor key appears as undefined.

It happens also with git storage, but may happen with another storage providers.

I run into this issue running Wiki.js 2.5.170 with the following Docker stack:

CONTAINER ID        IMAGE                                   COMMAND                  CREATED             STATUS              PORTS                                         NAMES
39373979b693        requarks/wiki:2                         "docker-entrypoint.s…"   44 minutes ago      Up 9 minutes        0.0.0.0:80->3000/tcp, 0.0.0.0:443->3443/tcp   wiki
608de6278aaa        requarks/wiki-update-companion:latest   "dotnet wiki-update-…"   5 months ago        Up 6 hours          80/tcp                                        wiki-update-companion
12c7b35ba295        postgres:11                             "docker-entrypoint.s…"   5 months ago        Up 6 hours          5432/tcp                                      db

* Provide id to allow to query for tags

* Update git storage to provide editorKey and tags
2021-01-29 14:15:22 -05:00
..
analytics fix: update Matomo integration client code (#2526) 2020-10-03 16:22:02 -04:00
authentication fix: enable passport-azure-ad workaround for SameSite cookies (#2567) 2020-11-01 13:10:50 -05:00
comments feat: edit comment 2020-05-31 18:15:15 -04:00
editor feat: redirect editor UI (wip) 2020-05-10 18:43:45 -04:00
extensions feat: extensions check + resolver 2020-05-21 00:20:57 -04:00
logging fix: code linting 2020-01-31 22:41:14 -05:00
rendering fix: superscript typo in module definition.yml (#2577) 2020-11-01 13:08:04 -05:00
search feat: set analyzer for elasticsearch (#2793) 2020-12-08 21:41:45 -05:00
storage fix: update storage.js to match pageHelper.injectPageMetadata (#2832) 2021-01-29 14:15:22 -05:00