dobo 2.27.0 → 2.27.2

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.
@@ -362,7 +362,7 @@ async function collectModels () {
362
362
  const prop = model.properties.find(p => p.name === field)
363
363
  if (!prop || (prop && prop.virtual)) throw this.error('virtualFieldIn%s%s%s', field, 'scanable', model.name)
364
364
  }
365
- if (schema.buildEnd) await callHandler(this.app[schema.ns], schema.buildEnd, model)
365
+ if (schema.buildEnd) await callHandler(model.plugin, schema.buildEnd, model)
366
366
  }
367
367
  schemas = []
368
368
  this.log.debug('collected%s%d', this.t('model'), this.models.length)
@@ -50,6 +50,11 @@ async function sanitizeRecord (record = {}, opts = {}) {
50
50
  else {
51
51
  const options = {
52
52
  lang: get(opts, 'req.lang'),
53
+ datetime: {
54
+ dateStyle: get(opts, 'req.site.setting.sumba.dateStyle'),
55
+ timeStyle: get(opts, 'req.site.setting.sumba.timeStyle'),
56
+ timeZone: get(opts, 'req.site.setting.sumba.timeZone')
57
+ },
53
58
  latitude: ['lat', 'latitude'].includes(key),
54
59
  longitude: ['lon', 'lng', 'longitude'].includes(key)
55
60
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dobo",
3
- "version": "2.27.0",
3
+ "version": "2.27.2",
4
4
  "description": "DBMS for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -6,6 +6,8 @@
6
6
  - [2.27.0] Add ```model:[before|after]RecordValidation``` model hooks
7
7
  - [2.27.0] Bug fix in ```model.countRecord()```
8
8
  - [2.27.0] Bug fix in ```model.loadFixtures()```
9
+ - [2.27.1] Bug fix in ```model.sanitizeRecord()```
10
+ - [2.27.2] Bug fix in ```collect-models.js```
9
11
 
10
12
  ## 2026-05-29
11
13