waibu-db 2.32.1 → 2.32.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.
@@ -45,15 +45,16 @@ async function exportHandler (opts = {}) {
45
45
  data.opts.lang = req.lang
46
46
  data.opts.fields = isEmpty(req.query.fields) ? get(schema, 'view.fields', []) : req.query.fields.split(',')
47
47
 
48
- data.opts.timeZone = get(req, 'site.setting.sumba.timeZone', this.app.bajo.config.intl.format.datetime.timeZone)
49
- data.opts.dateStyle = get(req, 'site.setting.sumba.dateStyle', this.app.bajo.config.intl.format.datetime.dateStyle)
50
- data.opts.timeStyle = get(req, 'site.setting.sumba.timeStyle', this.app.bajo.config.intl.format.datetime.timeStyle)
48
+ data.opts.datetime = get(opts, 'req.site.setting.bajo.intl.datetime', this.app.bajo.config.intl.datetime)
49
+ data.opts.date = get(opts, 'req.site.setting.bajo.intl.date', this.app.bajo.config.intl.date)
50
+ data.opts.time = get(opts, 'req.site.setting.bajo.intl.time', this.app.bajo.config.intl.time)
51
+ data.opts.timeZone = get(opts, 'req.site.setting.bajo.intl.timeZone', this.app.bajo.config.intl.timeZone)
52
+
51
53
  const source = `${this.ns}:/export-handler`
52
54
  const worker = `${this.ns}:exportData`
53
55
  const type = get(crud, 'input.ftype', 'json')
54
56
  data.exportOpts = get(crud, 'input.options', '').split(',')
55
57
  const ext = data.exportOpts.includes('zip') ? `${type}.gz` : type
56
- // const file = `${kebabCase(model)}_${dayjs().format('YYYYMMDDhhmmss')}.${ext}`
57
58
  const file = `${kebabCase(model)}.${ext}`
58
59
  if (this.app.sumba) {
59
60
  const description = kebabCase(model).split('-').map(w => w.charAt(0).toUpperCase() + w.slice(1)).join(' ')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-db",
3
- "version": "2.32.1",
3
+ "version": "2.32.2",
4
4
  "description": "DB Helper",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-07-29
4
+
5
+ - [2.32.2] Bug fix in `export-handler.js`
6
+
3
7
  ## 2026-07-28
4
8
 
5
9
  - [2.32.1] Bug fix in `exportData()`