mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-13 21:01:21 +08:00
removed webhook endpoint creation
This commit is contained in:
parent
f812085420
commit
f40b481f03
@ -16,13 +16,12 @@ export async function sendWebhooks(options: {
|
||||
return;
|
||||
}
|
||||
const data = JSON.parse(dataString);
|
||||
for (const { url, projectId } of data) {
|
||||
for (const { projectId } of data) {
|
||||
if (projectId !== options.projectId) {
|
||||
continue;
|
||||
}
|
||||
|
||||
await svix.application.getOrCreate({ uid: projectId, name: projectId });
|
||||
await svix.endpoint.create(projectId, { url });
|
||||
await svix.message.create(projectId, {
|
||||
eventType: options.type,
|
||||
payload: {
|
||||
@ -31,6 +30,6 @@ export async function sendWebhooks(options: {
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
captureError("Failed to send webhook", error);
|
||||
captureError("send-webhook", error);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user