dobo 2.34.0 → 2.34.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.
- package/lib/factory/adapter.js +1 -1
- package/package.json +1 -1
- package/wiki/CHANGES.md +4 -0
package/lib/factory/adapter.js
CHANGED
|
@@ -193,7 +193,7 @@ async function adapterFactory () {
|
|
|
193
193
|
if (prop.type === 'datetime') {
|
|
194
194
|
const dt = this.useUtc ? dayjs.utc(item[prop.name]) : dayjs(item[prop.name])
|
|
195
195
|
item[prop.name] = dt.toDate()
|
|
196
|
-
} else if (['object', 'array'].includes(prop.type)) item[prop.name] = JSON.parse(item[prop.name])
|
|
196
|
+
} else if (isString(item[prop.name]) && ['object', 'array'].includes(prop.type)) item[prop.name] = JSON.parse(item[prop.name])
|
|
197
197
|
} catch (err) {
|
|
198
198
|
item[prop.name] = null
|
|
199
199
|
}
|
package/package.json
CHANGED