Update db.js

This commit is contained in:
Aleksandr Statciuk 2021-09-21 12:39:34 +03:00
parent 6b15513360
commit 675ee83a7d
1 changed files with 2 additions and 3 deletions

View File

@ -84,9 +84,8 @@ db.channels = {
if (!this.duplicates) { if (!this.duplicates) {
const buffer = [] const buffer = []
output = output.filter(channel => { output = output.filter(channel => {
const info = channel.getInfo() if (buffer.includes(channel.hash)) return false
if (buffer.includes(info)) return false buffer.push(channel.hash)
buffer.push(info)
return true return true
}) })