From 47e2f8370833de315830eb0b5c1b1b9ba062e363 Mon Sep 17 00:00:00 2001 From: Navy Date: Mon, 21 Jun 2021 17:54:05 +0300 Subject: [PATCH] cache handler bugfix --- structure/Cache.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structure/Cache.js b/structure/Cache.js index 4b3d8ad..6b143ed 100644 --- a/structure/Cache.js +++ b/structure/Cache.js @@ -35,7 +35,7 @@ class Cache { } this.cacheSaveInterval = setInterval(this.save.bind(this), 10 * 60 * 1000); - this.modmailSaveInterval = setInterval(this.save.bind(this), this.saveInterval * 60 * 1000, this.client.modmail); + this.modmailSaveInterval = setInterval(this.saveModmailHistory.bind(this), this.saveInterval * 60 * 1000, this.client.modmail); this._ready = true; }