Skip to content

Commit

Permalink
Update stat.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Bes-js authored Jul 5, 2023
1 parent 35241fc commit a18b1bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Supervisor/src/beş_commands/Stat Komutları/stat.js
Original file line number Diff line number Diff line change
Expand Up @@ -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]");
Expand Down

0 comments on commit a18b1bd

Please sign in to comment.