I ran into an error while fetching data between an MLB league and an NFL league. If it was NFL, the 'date' value was coming as a integer. But it was throwing an error because you cannot do an indexOf() on an integer.
I changed the logic to check if the number is not an integer before doing the indexOf (which might not even be necessary anymore).
I ran into an error while fetching data between an MLB league and an NFL league. If it was NFL, the 'date' value was coming as a integer. But it was throwing an error because you cannot do an indexOf() on an integer.
I changed the logic to check if the number is not an integer before doing the indexOf (which might not even be necessary anymore).