fix: update guard with Model instance (#186)
This commit is contained in:
parent
ffbf4ecb66
commit
785077a6f3
@ -126,6 +126,10 @@ export class UpdateGuard {
|
|||||||
values[association] = associationValues;
|
values[association] = associationValues;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (values instanceof Model) {
|
||||||
|
return values;
|
||||||
|
}
|
||||||
|
|
||||||
let valuesKeys = Object.keys(values);
|
let valuesKeys = Object.keys(values);
|
||||||
|
|
||||||
// handle whitelist
|
// handle whitelist
|
||||||
|
Loading…
Reference in New Issue
Block a user