Skip to content

Commit

Permalink
fix(helper): 🐛 fix throwing error in ChapterHelper using asin before …
Browse files Browse the repository at this point in the history
…it's assigned
  • Loading branch information
djdembeck committed Aug 4, 2022
1 parent 4d46e03 commit d0bc3d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/books/audible/ChapterHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class ChapterHelper {

requiredKeys.forEach((key) => {
if (!Object.prototype.hasOwnProperty.call(inputJson, key)) {
throw new Error(`Required key: ${key}, does not exist on: ${finalJson.asin}`)
throw new Error(`Required key: ${key}, does not exist on: ${this.asin}`)
}
})

Expand Down

0 comments on commit d0bc3d8

Please sign in to comment.