From ede12f9ec207054713ab8d540b4c3d4fa36586e4 Mon Sep 17 00:00:00 2001 From: Adolfo Reyna Date: Tue, 31 Dec 2024 14:55:59 -0500 Subject: [PATCH] Fix latestProfile bug --- dbTools/profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbTools/profile.js b/dbTools/profile.js index 106862c..a3a01c8 100644 --- a/dbTools/profile.js +++ b/dbTools/profile.js @@ -168,7 +168,7 @@ userDB = (DB) => { }); let index = 0; while(r[index].isGroup || r[index].isChat) index += 1; - if (r[index]) userProfileCache[r[index].id] = r[index]; + if (r[index]) userProfileCache[r[index]._id] = r[index]; return r[index]; }