Skip to content

Commit

Permalink
feat(lobbies): create lobbies module
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFlurry committed Aug 8, 2024
1 parent 0a06f6b commit bca968f
Show file tree
Hide file tree
Showing 50 changed files with 7,140 additions and 1,371 deletions.
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

0 comments on commit bca968f

Please sign in to comment.