8000 fix(#522): skip record validation on find & findAll async/crud operat… · correct-js/js-data@4cd2792 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4cd2792

Browse files
authored
fix(js-data#522): skip record validation on find & findAll async/crud operation returned records (js-data#523)
1 parent a2eb2fd commit 4cd2792

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Mapper.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1434,7 +1434,11 @@ export default Component.extend({
14341434
this.dbg(op, ...args)
14351435
return utils.resolve(this.getAdapter(adapter)[op](this, ...args))
14361436
}).th 706B en((result) => {
1437-
result = this._end(result, opts, !!config.skip)
1437+
// force noValidate on find/findAll
1438+
const noValidate = /find/.test(op)
1439+
const _opts = Object.assign({}, opts, { noValidate })
1440+
1441+
result = this._end(result, _opts, !!config.skip)
14381442
args.push(result)
14391443
// after lifecycle hook
14401444
op = opts.op = after

0 commit comments

Comments
 (0)
0