waibu-db 2.28.0 → 2.28.1

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.
@@ -26,7 +26,7 @@ async function exportHandler (opts = {}) {
26
26
  req, reply, model, params = {}, templateDisabled = 'waibuDb.template:/disabled.html',
27
27
  options = {}
28
28
  } = opts
29
- const { dayjs } = this.app.lib
29
+ // const { dayjs } = this.app.lib
30
30
  const { omit, kebabCase, get, merge } = this.app.lib._
31
31
  const { pascalCase } = this.app.lib.aneka
32
32
  const { getSchemaExt } = this.app.waibuDb
@@ -42,7 +42,8 @@ async function exportHandler (opts = {}) {
42
42
  const type = get(data, 'input.ftype', 'json')
43
43
  const settings = get(data, 'input.options', '').split(',')
44
44
  const ext = settings.includes('zip') ? `${type}.gz` : type
45
- const file = `${kebabCase(model)}_${dayjs().format('YYYYMMDDhhmmss')}.${ext}`
45
+ // const file = `${kebabCase(model)}_${dayjs().format('YYYYMMDDhhmmss')}.${ext}`
46
+ const file = `${kebabCase(model)}.${ext}`
46
47
  if (this.app.masohi && this.app.sumba) {
47
48
  await this.app.sumba.pushDownload({ file, type, worker, source, data, req })
48
49
  req.flash('notify', req.t('exportInQueue'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-db",
3
- "version": "2.28.0",
3
+ "version": "2.28.1",
4
4
  "description": "DB Helper",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -4,6 +4,7 @@
4
4
 
5
5
  - [2.28.0] Update documentations
6
6
  - [2.28.0] Add feature to allow export only if `options.allowExport` is set to true
7
+ - [2.28.1] Bug fix in `export-handler.js`
7
8
 
8
9
  ## 2026-07-12
9
10