mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
removed duplicated logic
This commit is contained in:
parent
e07142f086
commit
465c214f27
@ -20,9 +20,7 @@ async function sendWebhooks(options: {
|
||||
projectId: string,
|
||||
data: any,
|
||||
}) {
|
||||
const apiKey = getEnvVariable("STACK_SVIX_API_KEY");
|
||||
const server = getEnvVariable("STACK_SVIX_SERVER_URL", "") || undefined;
|
||||
const svix = new Svix(apiKey, { serverUrl: server });
|
||||
const svix = getSvixClient();
|
||||
|
||||
try {
|
||||
await svix.application.getOrCreate({ uid: options.projectId, name: options.projectId });
|
||||
|
||||
Loading…
Reference in New Issue
Block a user