1 min readFeb 6, 2019
Good article. Just in case, anyone trying this….you may encounter an error regarding table does not exist in 2019….
Because, the data set internally has no data for the year 2019. Simply go to line 26 of your Cloud Function and change
const year = date.getFullYear() — 1