Skip to content

Commit

Permalink
fix error using /forget with no shop cache
Browse files Browse the repository at this point in the history
  • Loading branch information
giorgi-o committed Jun 17, 2023
1 parent cfea7f4 commit 5a0bfe3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion valorant/accountSwitcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,9 @@ export const deleteWholeUser = (id) => {
if(data) {
const puuids = data.accounts.map(a => a.puuid);
for(const puuid of puuids) {
fs.unlinkSync(`data/shopCache/${puuid}.json`);
try {
fs.unlinkSync(`data/shopCache/${puuid}.json`);
} catch(e) {}
}
}

Expand Down

0 comments on commit 5a0bfe3

Please sign in to comment.