Skip to content

Commit d8f9f41

Browse files
chore: use data intead of payload
1 parent 721590e commit d8f9f41

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

packages/events/src/kafka/event-dispatch/resource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const convertFullResourceToNodeEvent = (fullResource: FullResource) => ({
4444
const convertFullResourceToGoEvent = (fullResource: FullResource) => ({
4545
workspaceId: fullResource.workspaceId,
4646
eventType: Event.ResourceCreated as const,
47-
payload: getPbResource(fullResource),
47+
data: getPbResource(fullResource),
4848
timestamp: Date.now(),
4949
});
5050

packages/events/src/kafka/events.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,8 @@ export type Message<T extends keyof EventPayload> = {
179179
export type GoMessage<T extends keyof GoEventPayload> = {
180180
workspaceId: string;
181181
eventType: T;
182-
payload: GoEventPayload[T];
182+
data: GoEventPayload[T];
183+
timestamp: number;
183184
};
184185

185186
// Helper function to wrap a selector in the protobuf format

0 commit comments

Comments
 (0)