tangled
alpha
login
or
join now
finxol.io
/
hooks
0
fork
atom
Simple API gateway for webhooks
0
fork
atom
overview
issues
pulls
pipelines
fix: geocode data fetch
finxol.io
6 months ago
641b4660
ae6a41dc
verified
This commit was signed with the committer's
known signature
.
finxol.io
SSH Key Fingerprint:
SHA256:olFE3asYdoBMScuJOt60UxXdJ0RFdGv5kVKrdOtIcPI=
1/1
deploy.yaml
success
15s
+10
-2
2 changed files
expand all
collapse all
unified
split
src
main.ts
sensors.ts
+9
src/main.ts
···
52
52
`)
53
53
})
54
54
55
55
+
if (Deno.env.get("DENO_ENV") === "dev") {
56
56
+
const kv = await Deno.openKv()
57
57
+
const { default: data } = await import("../test.json", { with: { type: "json" } })
58
58
+
kv.set(
59
59
+
["sensors", "latest"],
60
60
+
{ ...data },
61
61
+
)
62
62
+
}
63
63
+
55
64
Deno.serve(app.fetch)
+1
-2
src/sensors.ts
···
151
151
Deno.env.get("GEOAPIFY_API_KEY")
152
152
}`,
153
153
)
154
154
-
.then((res) => res.json())
155
155
-
.then((data) => data.features[0].properties.country_code),
154
154
+
.then((res) => res.json()),
156
155
)
157
156
158
157
if (!geocode.success) {