@@ -29,11 +29,10 @@ class DemoEventBasedEntityProvider implements EntityProvider, EventSubscriber {
|
||||
) {}
|
||||
|
||||
async onEvent(params: EventParams): Promise<void> {
|
||||
const request = params.eventPayload as Request;
|
||||
this.logger.info(
|
||||
`onEvent: topic=${params.topic}, metadata=${JSON.stringify(
|
||||
params.metadata,
|
||||
)}, payload=${JSON.stringify(request.body)}`,
|
||||
)}, payload=${JSON.stringify(params.eventPayload)}`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -107,7 +107,7 @@ export class HttpPostIngressEventPublisher implements EventPublisher {
|
||||
return;
|
||||
}
|
||||
|
||||
const eventPayload = request;
|
||||
const eventPayload = request.body;
|
||||
await this.eventBroker!.publish({
|
||||
topic,
|
||||
eventPayload,
|
||||
|
||||
Reference in New Issue
Block a user