dobo 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,7 +37,7 @@ async function sanitizeFullText (item) {
37
37
  async function sanitizeSchema (items) {
38
38
  const { freeze, fatal, importModule, defaultsDeep, join, breakNsPath, runHook } = this.app.bajo
39
39
  const { map, keys, findIndex, find, each, isString, get, isPlainObject, camelCase, uniq, filter } = this.app.bajo.lib._
40
- const properties = keys(this.propType)
40
+ const propTypes = keys(this.propType)
41
41
  const schemas = []
42
42
  this.log.debug('Loading DB schemas')
43
43
  for (const k in items) {
@@ -85,7 +85,7 @@ async function sanitizeSchema (items) {
85
85
  prop.type = 'string'
86
86
  prop.maxLength = 255
87
87
  }
88
- if (!properties.includes(prop.type)) {
88
+ if (!propTypes.includes(prop.type)) {
89
89
  let success = false
90
90
  const feature = get(this.feature, isPlainObject(prop.type) ? prop.type.name : prop.type)
91
91
  if (feature) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dobo",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Database ORM/ODM for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {