Skip to content

Commit

Permalink
fix: and again
Browse files Browse the repository at this point in the history
  • Loading branch information
meenahoda committed Aug 1, 2018
1 parent 9020db3 commit 8d6fb0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/components/state-resources/upload-file/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ class UploadFile {
debug(`Writing file '${event.fileName}' to '${filePath}'`)
fs.writeFile(filePath, binaryData, err => {
if (err) {
debug(`Failed to upload '${event.filename}'`, err)
debug(`Failed to upload '${event.fileName}'`, err)
context.sendTaskFailure(err)
} else {
debug(`Upload of '${event.filename}' was successful`)
debug(`Upload of '${event.fileName}' was successful`)
context.sendTaskSuccess({
fileId: doc.idProperties.id,
fileName: event.fileName
Expand All @@ -49,7 +49,7 @@ class UploadFile {
})
})
.catch(err => {
debug(`Failed to upload '${event.filename}'`, err)
debug(`Failed to upload '${event.fileName}'`, err)
context.sendTaskFailure(err)
})
}
Expand Down

0 comments on commit 8d6fb0d

Please sign in to comment.