Skip to content

Commit

Permalink
chore: change supabase key variable name and upgraded package
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Apr 15, 2024
1 parent 3c58a1a commit 2e02ddc
Show file tree
Hide file tree
Showing 5 changed files with 705 additions and 718 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/jest-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
SUPABASE_KEY: ${{ secrets.SUPABASE_KEY }}
X25519_PRIVATE_KEY: ${{ secrets.X25519_PRIVATE_KEY }}

steps:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@octokit/rest": "20.1.0",
"@sinclair/typebox": "0.32.20",
"@supabase/supabase-js": "2.42.0",
"@ubiquibot/permit-generation": "1.0.1",
"@ubiquibot/permit-generation": "1.0.3",
"commander": "12.0.0",
"decimal.js": "10.4.3",
"dotenv": "16.4.5",
Expand Down
6 changes: 3 additions & 3 deletions src/parser/permit-generation-module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ interface Payload {

export class PermitGenerationModule implements Module {
readonly _configuration: PermitGenerationConfiguration = configuration.permitGeneration;
readonly _supabase = createClient<Database>(process.env.SUPABASE_URL, process.env.SUPABASE_ANON_KEY);
readonly _supabase = createClient<Database>(process.env.SUPABASE_URL, process.env.SUPABASE_KEY);

async transform(data: Readonly<IssueActivity>, result: Result): Promise<Result> {
const payload: Context["payload"] & Payload = context.payload.inputs;
Expand Down Expand Up @@ -65,7 +65,7 @@ export class PermitGenerationModule implements Module {
permitRequests: [
{
amount: value.total,
userId: value.userId,
username: key,
contributionType: "",
type: TokenType.ERC20,
},
Expand All @@ -92,7 +92,7 @@ export class PermitGenerationModule implements Module {
[
{
type: "ERC20",
userId: value.userId,
username: key,
amount: value.total,
contributionType: "",
},
Expand Down
2 changes: 1 addition & 1 deletion src/types/env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ declare global {
GITHUB_TOKEN: string;
OPENAI_API_KEY: string;
X25519_PRIVATE_KEY: string;
SUPABASE_ANON_KEY: string;
SUPABASE_KEY: string;
SUPABASE_URL: string;
NFT_CONTRACT_ADDRESS: string;
NFT_MINTER_PRIVATE_KEY: string;
Expand Down
Loading

0 comments on commit 2e02ddc

Please sign in to comment.