@kohanajs/mod-cms
Advanced tools
Comparing version 9.4.0 to 9.4.1
@@ -5,2 +5,9 @@ # Changelog | ||
### [9.4.1](https://gitlab.com/kohana-js/proposals/level0/mod-cms/compare/v9.4.0...v9.4.1) (2022-08-05) | ||
### Bug Fixes | ||
* livePages is null ([95dfd51](https://gitlab.com/kohana-js/proposals/level0/mod-cms/commit/95dfd5129164e7d1c24d578a9af44fceaaa15645)) | ||
## [9.4.0](https://gitlab.com/kohana-js/proposals/level0/mod-cms/compare/v9.3.0...v9.4.0) (2022-07-28) | ||
@@ -7,0 +14,0 @@ |
@@ -31,3 +31,3 @@ const path = require('path'); | ||
const database = this.state.get(ControllerMixinDatabase.DATABASES).get('live'); | ||
const livePages = await ORM.readBy(Page, 'page_type', [page_type], {database}); | ||
const livePages = await ORM.readBy(Page, 'page_type', [page_type], {database, asArray:true}); | ||
const livePageMap = new Map(livePages.map(page => [page.id, page])); | ||
@@ -34,0 +34,0 @@ |
@@ -14,3 +14,7 @@ const { KohanaJS } = require('kohanajs'); | ||
paragraphs:["subject", "body", "picture", "caption", "description"], | ||
}, | ||
pageTypeSlugs: { | ||
default: ['pages', 'articles', 'posts'] | ||
} | ||
}; |
{ | ||
"name": "@kohanajs/mod-cms", | ||
"version": "9.4.0", | ||
"version": "9.4.1", | ||
"description": "The CMS module for KohanaJS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104132
1369