dobo 2.30.0 → 2.30.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.
@@ -20,7 +20,7 @@ async function sanitizeBody ({ body = {}, partial, strict, extFields = [], noDef
20
20
  const result = {}
21
21
 
22
22
  const sanitize = (name, type) => {
23
- const opts = { strict, action, model: this.name, inputFormat: 'native' }
23
+ const opts = { strict, action, model: this.name, outputFormat: 'native' }
24
24
  result[name] = sanitizeByType(result[name], type, opts)
25
25
  if (['updateRecord', 'upsertRecord'].includes(action) && type === 'string' && result[name] === '') result[name] = null
26
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dobo",
3
- "version": "2.30.0",
3
+ "version": "2.30.1",
4
4
  "description": "DBMS for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -6,6 +6,7 @@
6
6
  - [2.30.0] Add ```sanitizeByType()```
7
7
  - [2.30.0] Add ```error._abortAction``` to abort an action in driver level
8
8
  - [2.30.0] Refactor ```model.sanitizeBody()``` to use shared sanitizing function
9
+ - [2.30.1] Bug fix in ```model.sanitizeBody()```
9
10
 
10
11
  ## 2026-06-11
11
12