length -> duration

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
This commit is contained in:
Šimon Brandner 2021-08-06 14:38:53 +02:00
parent 43325eb866
commit 8368aa13ca
No known key found for this signature in database
GPG key ID: CC823428E9B582FB
2 changed files with 4 additions and 4 deletions

View file

@ -86,7 +86,7 @@ export default class CallEventGrouper extends EventEmitter {
return Boolean(this.reject);
}
public get length(): Date {
public get duration(): Date {
if (!this.hangup || !this.selectAnswer) return;
return new Date(this.hangup.getDate().getTime() - this.selectAnswer.getDate().getTime());
}