Skip to content

Commit

Permalink
remove console.logs
Browse files Browse the repository at this point in the history
  • Loading branch information
lluisd committed Apr 2, 2024
1 parent 43edabe commit 771ffe7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,13 @@ async function updateClients() {

const updatedIds = [...new Set([...ipsForClient])];

console.log(`Client ${client.name} has IPs: ${originalClientIps} and updated IPs: ${updatedIds}`)
if (!arraysEqual(originalClientIps, updatedIds)) {
client.ids = [...updatedIds, ...new Set([...client.ids.filter(id => !isIp(id))])];
const updateObj = {
name: client.name,
data: client
};

console.log(`Updating client ${client.name} with new IDs: ${updatedIds}`);
return adguardFetch(API_ENDPOINTS.CLIENTS_UPDATE, 'POST', updateObj);
}
});
Expand Down

0 comments on commit 771ffe7

Please sign in to comment.