Skip to content

Commit a81391d

Browse files
committed
chore: fix kvPath name
1 parent 13bf1e3 commit a81391d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default {
1818
maxWebhookRetries: parseInt(get("MAX_RETRIES", "3")),
1919
maxWebhookRetryMs: parseInt(get("MAX_RETRY_MS", "30000")),
2020
mainRedirect: get("MAIN_REDIRECT", null),
21-
KV_PATH: get("KV_PATH", null) ?? undefined,
21+
kvPath: get("KV_PATH", null) ?? undefined,
2222

2323
// set by deno deploy
2424
deployId: get("DENO_DEPLOYMENT_ID", "<unknown>"),

src/kv.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { RequestLog } from "./util.ts";
44
const KEY_EXPIRY = 3; // seconds
55
const MAX_RETRIES = 50;
66

7-
const kv = await Deno.openKv(config.KV_PATH);
7+
const kv = await Deno.openKv(config.kvPath);
88

99
export async function getAndIncrementKV(key: string, reqLog: RequestLog): Promise<number> {
1010
const kvKey = ["pr-comment", key];

0 commit comments

Comments
 (0)