diff options
Diffstat (limited to 'src/util/entities/Role.ts')
-rw-r--r-- | src/util/entities/Role.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/util/entities/Role.ts b/src/util/entities/Role.ts index e8e5feda..2783a279 100644 --- a/src/util/entities/Role.ts +++ b/src/util/entities/Role.ts @@ -69,4 +69,11 @@ export class Role extends BaseClass { @Column({ default: 0 }) flags: number; + + toJSON(): Role { + return { + ...this, + tags: this.tags ?? undefined, + }; + } } |