Skip to content

Commit

Permalink
adjust for if the key contains a splitter
Browse files Browse the repository at this point in the history
  • Loading branch information
NourAlharithi committed Sep 18, 2024
1 parent 2a3e28b commit a9c4371
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pruner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ async function main() {
const keys = reply[1];

// Process the keys
for (const key of keys) {
for (let key of keys) {
if (key.includes(':')) {
key = key.split(':').at(-1);
}
if (key == 'user_pubkeys') continue;
if (userMap.get(key) === undefined) {
console.log(`Pruning idle or deleted user: ${key}`);
Expand Down

0 comments on commit a9c4371

Please sign in to comment.