wikijs-fork/server/modules/storage
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
..
azure feat: export creation date in dumped content (#2345) 2020-08-31 11:28:55 -04:00
box fix: stream assets from storage local locations (#2087) 2020-07-12 12:19:01 -04:00
digitalocean
disk fix: update storage.js to match pageHelper.injectPageMetadata (#2832) 2021-01-29 14:15:22 -05:00
dropbox fix: stream assets from storage local locations (#2087) 2020-07-12 12:19:01 -04:00
gdrive fix: stream assets from storage local locations (#2087) 2020-07-12 12:19:01 -04:00
git fix: update storage.js to match pageHelper.injectPageMetadata (#2832) 2021-01-29 14:15:22 -05:00
onedrive fix: stream assets from storage local locations (#2087) 2020-07-12 12:19:01 -04:00
s3 feat: export creation date in dumped content (#2345) 2020-08-31 11:28:55 -04:00
s3generic feat: extra options for generic S3 module 2020-06-07 18:28:16 -04:00
sftp feat: export creation date in dumped content (#2345) 2020-08-31 11:28:55 -04:00