Skip to content

Commit f9dcbe3

Browse files
committed
minor tweaks ✅; 4.10.2
1 parent 5b92e5c commit f9dcbe3

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

lib/stop_times.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ UPDATE "${opt.schema}".stop_times
9999
SET stop_sequence_consec = t.seq
100100
FROM (
101101
SELECT
102-
row_number() OVER (PARTITION BY trip_id ORDER BY stop_sequence ASC) - 1 AS seq,
102+
row_number() OVER (PARTITION BY trip_id ORDER BY stop_sequence ASC)::integer - 1 AS seq,
103103
trip_id, stop_sequence
104104
FROM "${opt.schema}".stop_times
105105
) AS t

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "gtfs-via-postgres",
33
"description": "Process GTFS using PostgreSQL.",
4-
"version": "4.10.1",
4+
"version": "4.10.2",
55
"main": "lib/index.js",
66
"bin": {
77
"gtfs-to-sql": "cli.js",

test/postgraphile.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ trap 'exit_code=$?; kill -- $(jobs -p); exit $exit_code' SIGINT SIGTERM EXIT
2222
../scripts/run-postgraphile.js &
2323
sleep 2
2424

25-
expected="$(cat sample-gtfs-feed-postgraphile-test.res.json)"
2625
body=$(node -e 'process.stdout.write(JSON.stringify({query: fs.readFileSync("sample-gtfs-feed-postgraphile-test.graphql", {encoding: "utf8"})}))')
2726
actual_path="$(mktemp -t sample-gtfs-feed-postgraphile-test-XXX)"
2827
curl -X POST 'http://localhost:3000/graphql' -H 'Content-Type: application/json' -H 'Accept: application/json' --data "$body" -fsS | jq -r --tab . >"$actual_path"

0 commit comments

Comments
 (0)