feat: add created to group properties
This commit is contained in:
parent
59833224ce
commit
05b590e7b9
@ -15,6 +15,7 @@ export default class Group {
|
||||
banner?: string;
|
||||
color?: string;
|
||||
privacy?: GroupPrivacy;
|
||||
created?: string;
|
||||
|
||||
constructor(data: any) {
|
||||
this.id = data.id;
|
||||
@ -25,6 +26,7 @@ export default class Group {
|
||||
this.icon = data.icon;
|
||||
this.banner = data.banner;
|
||||
this.color = data.color;
|
||||
this.created = data.created;
|
||||
if (data.privacy) {
|
||||
this.privacy = {}
|
||||
this.privacy.description_privacy = data.privacy.description_privacy;
|
||||
|
Loading…
Reference in New Issue
Block a user