Skip to content

Commit

Permalink
Fixed missing function paramter (this - instance of Edupage)
Browse files Browse the repository at this point in the history
  • Loading branch information
loumadev committed Dec 9, 2021
1 parent 3fb31f5 commit aca20bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Edupage.js
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ class Edupage extends RawData {
encodeBody: false
});
const _json = Timetable.parse(_html);
const timetables = iterate(_json.dates).map(([i, date, data]) => new Timetable(data, date,));
const timetables = iterate(_json.dates).map(([i, date, data]) => new Timetable(data, date, this));

//Update timetables
timetables.forEach(e => {
Expand Down

0 comments on commit aca20bd

Please sign in to comment.