Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion apps/builder/src/features/integration-api/api/public.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,17 @@ export const channelsPublicRouter = {
data: {
integrationType: "api",
integrationIdentifier: context.inbox.id,
payload: input,
// The API integration's messageStatus handler validates
// `{ messageSourceId, status }` (integrations/api/src/handlers/
// message/outgoing-message.ts); the public contract names the
// same id `messageId`. Passing `input` through verbatim made every
// accepted (204) status die as a ZodError in the worker.
payload: {
messageSourceId: input.messageId,
status: input.status,
timestamp: input.timestamp,
error: input.error,
},
},
})
}),
Expand Down
Loading