Skip to content
This repository has been archived by the owner on Nov 7, 2023. It is now read-only.

Commit

Permalink
fix wukong folder path bug
Browse files Browse the repository at this point in the history
Fixes #211
  • Loading branch information
Dustin Blackman committed Nov 25, 2016
1 parent 3c8cbe5 commit b0e195a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/championify.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,10 @@ function saveToFile() {
.then(R.flatten)
.then(R.reject(R.isNil))
.each(data => {
const champ = data.champ.toLowerCase() === 'wukong' ? 'monkeyking' : data.champ;
const itemset_data = JSON.stringify(data.riot_json, null, 4);
const folder_path = path.join(store.get('itemset_path'), data.champ, 'Recommended');
const file_path = path.join(folder_path, `CIFY_${data.champ}_${data.source}_${data.file_prefix}.json`);
const folder_path = path.join(store.get('itemset_path'), champ, 'Recommended');
const file_path = path.join(folder_path, `CIFY_${champ}_${data.source}_${data.file_prefix}.json`);

return fs.mkdirsAsync(folder_path)
.catch(err => Log.warn(err))
Expand Down

0 comments on commit b0e195a

Please sign in to comment.