dobo 2.6.2 → 2.6.3

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.
@@ -18,7 +18,8 @@ async function sanitizeRecord (record = {}, opts = {}) {
18
18
  if (isEmpty(newFields)) newFields = map(this.properties, prop => prop.name)
19
19
  if (!newFields.includes('id')) newFields.unshift('id')
20
20
  newFields = without(newFields, ...allHidden)
21
- const newRecord = await this.sanitizeBody({ body: fillObject(record, newFields, null), noDefault: true })
21
+ const body = fillObject(record, newFields, null)
22
+ const newRecord = await this.sanitizeBody({ body, noDefault: true })
22
23
  if (record._ref) newRecord._ref = record._ref
23
24
  return newRecord
24
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dobo",
3
- "version": "2.6.2",
3
+ "version": "2.6.3",
4
4
  "description": "DBMS for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-02-03
4
+
5
+ - [2.6.3] Bug fix on ```model.sanitizeRecord()```
6
+
3
7
  ## 2026-02-02
4
8
 
5
9
  - [2.6.2] Bug fix on query & search resolver: Do not remove old query/search, should always copied to oldQuery/oldSearch