fix: update guard with Model instance (#186)

This commit is contained in:
ChengLei Shao 2022-02-12 12:36:22 +08:00 committed by GitHub
parent ffbf4ecb66
commit 785077a6f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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