@@ -34,7 +34,7 @@ ORDER BY domain, name, is_added`
34
34
* @returns Array<Dataset>, e.g. [{ domain, name, is_added, id, desc }]
35
35
*/
36
36
export 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
38
38
FROM socrata.daily_diff dd INNER JOIN socrata.all_datasets d
39
39
ON dd.id = d.id
40
40
WHERE dd.day::text = '${ timestamp } '
@@ -54,7 +54,7 @@ export interface DiffResponse {
54
54
* @returns Array<Dataset>, e.g. [{ domain, name, is_added, id, desc }]
55
55
*/
56
56
export 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
58
58
FROM socrata.weekly_diff w INNER JOIN socrata.all_datasets d
59
59
ON w.id = d.id
60
60
WHERE w.week::text = '${ timestamp } '
@@ -85,7 +85,7 @@ GROUP BY 1
85
85
ORDER BY 1 ASC`
86
86
87
87
export 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
89
89
FROM socrata.monthly_diff m INNER JOIN socrata.all_datasets d
90
90
ON m.id = d.id
91
91
WHERE m.month::text = '${ timestamp } '
0 commit comments