dobo 2.6.1 → 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.
|
@@ -63,7 +63,8 @@ export async function getFilterAndOptions (filter = {}, options = {}, action) {
|
|
|
63
63
|
for (const key of keys) {
|
|
64
64
|
nOptions[key] = options[key]
|
|
65
65
|
}
|
|
66
|
-
|
|
66
|
+
nFilter.orgQuery = nFilter.query
|
|
67
|
+
nFilter.orgSearch = nFilter.search
|
|
67
68
|
if (!nOptions.noModelHook) await runModelHook(this, 'beforeBuildQuery', nFilter.query, nOptions)
|
|
68
69
|
nFilter.query = buildFilterQuery.call(this, nFilter) ?? {}
|
|
69
70
|
if (!nOptions.noModelHook) await runModelHook(this, 'afterBuildQuery', nFilter.query, nOptions)
|
|
@@ -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
|
|
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
package/wiki/CHANGES.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changes
|
|
2
2
|
|
|
3
|
+
## 2026-02-03
|
|
4
|
+
|
|
5
|
+
- [2.6.3] Bug fix on ```model.sanitizeRecord()```
|
|
6
|
+
|
|
7
|
+
## 2026-02-02
|
|
8
|
+
|
|
9
|
+
- [2.6.2] Bug fix on query & search resolver: Do not remove old query/search, should always copied to oldQuery/oldSearch
|
|
10
|
+
|
|
3
11
|
## 2026-02-01
|
|
4
12
|
|
|
5
13
|
- [2.6.0] Add ```model.scanables``` for fields that can participate in table scans if necessary
|