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

Commit e1008fc

Browse files
committed
feat(lobbies): create lobbies module
1 parent 0a06f6b commit e1008fc

File tree

1,381 files changed

+599582
-1371
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,381 files changed

+599582
-1371
lines changed

deno.lock

Lines changed: 1552 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/email/scripts/send_email.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,17 @@ export async function run(
2727
if ("test" in ctx.config.provider) {
2828
// Do nothing
2929
} else if ("sendGrid" in ctx.config.provider) {
30-
await useSendGrid(ctx.config.provider.sendGrid, req);
30+
await useSendGrid(ctx, ctx.config.provider.sendGrid, req);
3131
} else {
3232
throw new RuntimeError("unreachable");
3333
}
3434

3535
return {};
3636
}
3737

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

4343
const content = [];

0 commit comments

Comments
 (0)