@@ -34,7 +34,7 @@ ORDER BY domain, name, is_added`
3434 * @returns Array<Dataset>, e.g. [{ domain, name, is_added, id, desc }]
3535 */
3636export const dailyDiff = ( timestamp : string = '2022-11-02 00:00:00' ) =>
37- `SELECT d.domain, d.name, is_added, id, d.description
37+ `SELECT d.domain, d.name, is_added, id, d.description, d.id
3838FROM socrata.daily_diff dd INNER JOIN socrata.all_datasets d
3939ON dd.id = d.id
4040WHERE dd.day::text = '${ timestamp } '
@@ -54,7 +54,7 @@ export interface DiffResponse {
5454 * @returns Array<Dataset>, e.g. [{ domain, name, is_added, id, desc }]
5555 */
5656export const weeklyDiff = ( timestamp : string = '2022-10-31 00:00:00' ) =>
57- `SELECT d.domain, d.name, is_added, id, d.description
57+ `SELECT d.domain, d.name, is_added, id, d.description, d.id
5858FROM socrata.weekly_diff w INNER JOIN socrata.all_datasets d
5959ON w.id = d.id
6060WHERE w.week::text = '${ timestamp } '
@@ -85,7 +85,7 @@ GROUP BY 1
8585ORDER BY 1 ASC`
8686
8787export const monthlyDiff = ( timestamp : string ) =>
88- `SELECT month, d.domain, d.name, is_added, id, d.description
88+ `SELECT month, d.domain, d.name, is_added, id, d.description, d.id
8989FROM socrata.monthly_diff m INNER JOIN socrata.all_datasets d
9090ON m.id = d.id
9191WHERE m.month::text = '${ timestamp } '
0 commit comments