From 0b2ae3dc779705527225dd946bf8195ecf507254 Mon Sep 17 00:00:00 2001 From: austinkelsay Date: Fri, 3 Jan 2025 15:24:38 -0600 Subject: [PATCH] Remove test pubkey from config, fix github api var --- src/config/appConfig.js | 2 +- src/lib/github.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config/appConfig.js b/src/config/appConfig.js index 44155e5..30556e0 100644 --- a/src/config/appConfig.js +++ b/src/config/appConfig.js @@ -11,7 +11,7 @@ const appConfig = { "wss://purplerelay.com/", "wss://relay.devs.tools/" ], - authorPubkeys: ["f33c8a9617cb15f705fc70cd461cfd6eaf22f9e24c33eabad981648e5ec6f741", "c67cd3e1a83daa56cff16f635db2fdb9ed9619300298d4701a58e68e84098345", "468f729dd409053dac5e7470622c3996aad88db6ed1de9165cb1921b5ab4fd5e"], + authorPubkeys: ["f33c8a9617cb15f705fc70cd461cfd6eaf22f9e24c33eabad981648e5ec6f741", "c67cd3e1a83daa56cff16f635db2fdb9ed9619300298d4701a58e68e84098345"], customLightningAddresses: [ { // todo remove need for lowercase diff --git a/src/lib/github.js b/src/lib/github.js index aba8482..e3c4f9e 100644 --- a/src/lib/github.js +++ b/src/lib/github.js @@ -4,7 +4,7 @@ import { throttling } from "@octokit/plugin-throttling"; const ThrottledOctokit = Octokit.plugin(throttling); const octokit = new ThrottledOctokit({ - auth: process.env.NEXT_PUBLIC_GITHUB_ACCESS_KEY, + auth: process.env.NEXT_PUBLIC_GITHUB_API, throttle: { onRateLimit: (retryAfter, options, octokit, retryCount) => { octokit.log.warn(`Request quota exhausted for request ${options.method} ${options.url}`); @@ -21,7 +21,7 @@ const octokit = new ThrottledOctokit({ }); export async function* getAllCommits(accessToken, since) { - const auth = accessToken || process.env.NEXT_PUBLIC_GITHUB_ACCESS_KEY; + const auth = accessToken || process.env.NEXT_PUBLIC_GITHUB_API; const octokit = new ThrottledOctokit({ auth,