Reference correct variable

This commit is contained in:
RyanHx 2022-08-28 02:21:59 +01:00
parent 95563abda0
commit 82269a64b9

View file

@ -6,7 +6,7 @@ class MessageTracker {
this.data.set(msg.id, msg);
if (this.data.size > this.#maxLength) {
const [firstKey] = map.keys();
const [firstKey] = this.data.keys();
this.data.delete(firstKey);
}
}