Made webhook index stats optional
🚀 Publish Trigger.dev Docker / units (push) Failing after 4s
🚀 Publish Trigger.dev Docker / typecheck (push) Failing after 4s
🚀 Publish Trigger.dev Docker / e2e (push) Failing after 19s
🚀 Publish Trigger.dev Docker / publish (push) Has been skipped

This commit is contained in:
Eric Allam
2023-11-28 15:04:24 +00:00
parent dbc2e3f713
commit caf203c084
2 changed files with 2 additions and 2 deletions
@@ -324,7 +324,7 @@ export class PerformEndpointIndexService {
for (const webhook of webhooks) {
try {
await this.#registerWebhookService.call(endpoint, webhook);
indexStats.webhooks++;
indexStats.webhooks = indexStats.webhooks ?? 0 + 1;
} catch (error) {
logger.error("Failed to register webhook", {
endpointId: endpoint.id,
+1 -1
View File
@@ -398,7 +398,7 @@ export type EndpointIndexError = z.infer<typeof EndpointIndexErrorSchema>;
const IndexEndpointStatsSchema = z.object({
jobs: z.number(),
sources: z.number(),
webhooks: z.number(),
webhooks: z.number().optional(),
dynamicTriggers: z.number(),
dynamicSchedules: z.number(),
disabledJobs: z.number().default(0),