feat: add created to group properties

This commit is contained in:
Spectralitree 2021-12-18 20:09:07 +01:00
parent 59833224ce
commit 05b590e7b9

View File

@ -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;