mirror of
https://github.com/hexastack/hexabot
synced 2025-06-26 18:27:28 +00:00
Merge pull request #492 from Hexastack/fix/bot-stats-ts-check
Some checks are pending
Build and Push Docker API Image / build-and-push (push) Waiting to run
Build and Push Docker Base Image / build-and-push (push) Waiting to run
Build and Push Docker NLU Image / build-and-push (push) Waiting to run
Build and Push Docker UI Image / build-and-push (push) Waiting to run
Some checks are pending
Build and Push Docker API Image / build-and-push (push) Waiting to run
Build and Push Docker Base Image / build-and-push (push) Waiting to run
Build and Push Docker NLU Image / build-and-push (push) Waiting to run
Build and Push Docker UI Image / build-and-push (push) Waiting to run
fix: bot stats to comply with strict null check
This commit is contained in:
commit
7d8dccdd9b
@ -55,7 +55,7 @@ export class BotStats extends BaseSchema {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
@Prop({ type: Number, default: 0 })
|
@Prop({ type: Number, default: 0 })
|
||||||
value?: number;
|
value: number;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* name of the insight (e.g: incoming messages).
|
* name of the insight (e.g: incoming messages).
|
||||||
@ -76,7 +76,7 @@ export class BotStats extends BaseSchema {
|
|||||||
id: index + 1,
|
id: index + 1,
|
||||||
name: type,
|
name: type,
|
||||||
values: [],
|
values: [],
|
||||||
};
|
} as ToLinesType;
|
||||||
});
|
});
|
||||||
|
|
||||||
const index: { [dataName: string]: number } = data.reduce(
|
const index: { [dataName: string]: number } = data.reduce(
|
||||||
|
Loading…
Reference in New Issue
Block a user