Skip to content

Commit 1024245

Browse files
committed
Fix file/filePath discrepency
1 parent 7516277 commit 1024245

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ fc.changeArtwork = function() {
321321
file_name = path.basename(parsed.pathname);
322322

323323
downloader.downloadFile(new_artwork.url, new_artwork.id + file_name)
324-
.then(function(file) {
325-
tokens['$filepath'] = file.path;
324+
.then(function(filePath) {
325+
tokens['$filepath'] = filePath;
326326
swapArt();
327327
})
328328
.catch(reject);

0 commit comments

Comments
 (0)