Добавил новое поле, пофиксил типы полей
This commit is contained in:
parent
6cda405c0b
commit
1fd0485937
|
|
@ -20,6 +20,7 @@ const getReportData = (data: AxiosResponse<any, any, {}>): BlacklistItem[] => {
|
||||||
value.griefer,
|
value.griefer,
|
||||||
value.toxic,
|
value.toxic,
|
||||||
value.useless,
|
value.useless,
|
||||||
|
value.smurf
|
||||||
);
|
);
|
||||||
blacklistItems.push(blacklistItem);
|
blacklistItems.push(blacklistItem);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,13 +2,14 @@ export class BlacklistItem {
|
||||||
link: string;
|
link: string;
|
||||||
nicknames: string[];
|
nicknames: string[];
|
||||||
comments: string[];
|
comments: string[];
|
||||||
afk: boolean;
|
afk: number;
|
||||||
cheater: boolean;
|
cheater: number;
|
||||||
griefer: boolean;
|
griefer: number;
|
||||||
toxic: boolean;
|
toxic: number;
|
||||||
useless: boolean;
|
useless: number;
|
||||||
|
smurf: number;
|
||||||
|
|
||||||
constructor(link: string, nicknames: string[], comments: string[], afk: boolean, cheater: boolean, griefer: boolean, toxic: boolean, useless: boolean) {
|
constructor(link: string, nicknames: string[], comments: string[], afk: number, cheater: number, griefer: number, toxic: number, useless: number, smurf: number) {
|
||||||
this.link = link;
|
this.link = link;
|
||||||
this.nicknames = nicknames;
|
this.nicknames = nicknames;
|
||||||
this.comments = comments;
|
this.comments = comments;
|
||||||
|
|
@ -17,5 +18,6 @@ export class BlacklistItem {
|
||||||
this.griefer = griefer;
|
this.griefer = griefer;
|
||||||
this.toxic = toxic;
|
this.toxic = toxic;
|
||||||
this.useless = useless;
|
this.useless = useless;
|
||||||
|
this.smurf = smurf;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue