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
|
|
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