Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

feat(lobbies): add lobbies module #110

Merged
merged 1 commit into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1,552 changes: 1,552 additions & 0 deletions deno.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions modules/email/scripts/send_email.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,17 @@ export async function run(
if ("test" in ctx.config.provider) {
// Do nothing
} else if ("sendGrid" in ctx.config.provider) {
await useSendGrid(ctx.config.provider.sendGrid, req);
await useSendGrid(ctx, ctx.config.provider.sendGrid, req);
} else {
throw new RuntimeError("unreachable");
}

return {};
}

async function useSendGrid(config: ProviderSendGrid, req: Request) {
async function useSendGrid(ctx: ScriptContext, config: ProviderSendGrid, req: Request) {
const apiKeyVariable = config.apiKeyVariable ?? "SENDGRID_API_KEY";
const apiKey = Deno.env.get(apiKeyVariable);
const apiKey = ctx.environment.get(apiKeyVariable);
assertExists(apiKey, `Missing environment variable: ${apiKeyVariable}`);

const content = [];
Expand Down
Loading
Loading