fix(Role): toJSON() throwing due to permission bigints (#6724)

This commit is contained in:
Almeida
2021-10-03 14:01:24 +01:00
committed by GitHub
parent 28d96e344b
commit 9e421f6ccf

View File

@@ -388,7 +388,10 @@ class Role extends Base {
}
toJSON() {
return super.toJSON({ createdTimestamp: true });
return {
...super.toJSON({ createdTimestamp: true }),
permissions: this.permissions.toJSON(),
};
}
/**