From a18b1bd2e3df8b10aa906aa47d37881ef3022c0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Five=20So=20Be=C5=9F?= <89789101+Bes-js@users.noreply.github.com> Date: Wed, 5 Jul 2023 17:43:15 +0300 Subject: [PATCH] Update stat.js --- .../src/be\305\237_commands/Stat Komutlar\304\261/stat.js" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/Supervisor/src/be\305\237_commands/Stat Komutlar\304\261/stat.js" "b/Supervisor/src/be\305\237_commands/Stat Komutlar\304\261/stat.js" index 9398175..ad563c0 100644 --- "a/Supervisor/src/be\305\237_commands/Stat Komutlar\304\261/stat.js" +++ "b/Supervisor/src/be\305\237_commands/Stat Komutlar\304\261/stat.js" @@ -25,7 +25,7 @@ module.exports = { const category = async (parentsArray) => { const data = await voiceUserParent.find({ guildId: message.guild.id, userID: member.user.id }); - const voiceUserParentData = data.filter((x) => parentsArray.includes(x.parentID)); + const voiceUserParentData = data.filter((x) => parentsArray.includes(x.parentId)); let voiceStat = 0; for (var i = 0; i <= voiceUserParentData.length; i++) { voiceStat += voiceUserParentData[i] ? voiceUserParentData[i].parentData : 0; } return moment.duration(voiceStat).format("H [Saat], m [Dakika], s [Saniye]");