wikijs-fork/server
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
..
app fix: remove bugsnag + update deps 2020-10-03 17:30:56 -04:00
controllers fix: handle missing extra field during page render 2020-10-03 16:50:51 -04:00
core fix: set autocommit for mysql (#2638) 2020-12-13 14:57:20 -05:00
db fix: force lowercase for email on local auth 2020-09-09 19:59:46 -04:00
graph refactor: server code (#2545) 2020-10-14 11:16:27 -04:00
helpers fix: strip directory traversal sequences from asset paths 2020-10-03 01:44:57 -04:00
jobs feat: browse nav + pageTree ancestors 2020-04-18 18:33:22 -04:00
locales feat: load dev locale files 2019-02-09 12:34:27 -05:00
middlewares fix: admin security UI 2020-05-30 16:42:48 -04:00
models fix: search engine broken when renaming or moving pages (#2815) 2020-12-13 14:51:44 -05:00
modules fix: update storage.js to match pageHelper.injectPageMetadata (#2832) 2021-01-29 14:15:22 -05:00
templates feat: password reset 2020-08-30 21:46:55 -04:00
test/helpers refactor: server code (#2545) 2020-10-14 11:16:27 -04:00
themes/default feat: admin edit user (wip) 2019-08-11 23:26:29 -04:00
views feat: password reset 2020-08-30 21:46:55 -04:00
index.js fix: revalidate tokens created prior to server startup 2020-06-25 22:04:21 -04:00
master.js refactor: server code (#2545) 2020-10-14 11:16:27 -04:00
setup.js refactor: server code (#2545) 2020-10-14 11:16:27 -04:00