fix: mode object transform.

This commit is contained in:
a.bouhuolia
2021-08-30 22:08:13 +02:00
parent a9145b84d0
commit 3db4e8f7d6
2 changed files with 2 additions and 2 deletions

View File

@@ -31,7 +31,7 @@ export class Transformer {
const attributes = this.getIncludeAttributesTransformed(item);
return {
...!isUndefined(item.toJSON) ? item.toObject() : item,
...!isUndefined(item.toObject) ? item.toObject() : item,
...attributes
};
};