mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 18:45:57 +00:00
fix: bot stats to comply with strict null check
This commit is contained in:
parent
1683ce5ca0
commit
ea438a45c1
@ -55,7 +55,7 @@ export class BotStats extends BaseSchema {
|
||||
*/
|
||||
|
||||
@Prop({ type: Number, default: 0 })
|
||||
value?: number;
|
||||
value: number;
|
||||
|
||||
/**
|
||||
* name of the insight (e.g: incoming messages).
|
||||
@ -76,7 +76,7 @@ export class BotStats extends BaseSchema {
|
||||
id: index + 1,
|
||||
name: type,
|
||||
values: [],
|
||||
};
|
||||
} as ToLinesType;
|
||||
});
|
||||
|
||||
const index: { [dataName: string]: number } = data.reduce(
|
||||
|
Loading…
Reference in New Issue
Block a user