Reference correct variable
This commit is contained in:
parent
95563abda0
commit
82269a64b9
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ class MessageTracker {
|
||||||
this.data.set(msg.id, msg);
|
this.data.set(msg.id, msg);
|
||||||
|
|
||||||
if (this.data.size > this.#maxLength) {
|
if (this.data.size > this.#maxLength) {
|
||||||
const [firstKey] = map.keys();
|
const [firstKey] = this.data.keys();
|
||||||
this.data.delete(firstKey);
|
this.data.delete(firstKey);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue