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;
|
banner?: string;
|
||||||
color?: string;
|
color?: string;
|
||||||
privacy?: GroupPrivacy;
|
privacy?: GroupPrivacy;
|
||||||
|
created?: string;
|
||||||
|
|
||||||
constructor(data: any) {
|
constructor(data: any) {
|
||||||
this.id = data.id;
|
this.id = data.id;
|
||||||
@ -25,6 +26,7 @@ export default class Group {
|
|||||||
this.icon = data.icon;
|
this.icon = data.icon;
|
||||||
this.banner = data.banner;
|
this.banner = data.banner;
|
||||||
this.color = data.color;
|
this.color = data.color;
|
||||||
|
this.created = data.created;
|
||||||
if (data.privacy) {
|
if (data.privacy) {
|
||||||
this.privacy = {}
|
this.privacy = {}
|
||||||
this.privacy.description_privacy = data.privacy.description_privacy;
|
this.privacy.description_privacy = data.privacy.description_privacy;
|
||||||
|
Loading…
Reference in New Issue
Block a user