Skip to content

Commit 965cc31

Browse files
committed
Added type.:
1 parent bc80d7d commit 965cc31

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/outbox-core/lib/objects.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export type OutboxEntryStatus = 'CREATED' | 'ACKED' | 'SUCCESS' | 'FAILED'
1515

1616
export type OutboxEntry<SupportedEvent extends CommonEventDefinition> = {
1717
id: string
18+
type: string
1819
event: CommonEventDefinitionPublisherSchemaType<SupportedEvent>
1920
precedingMessageMetadata?: Partial<ConsumerMessageMetadataType>
2021
status: OutboxEntryStatus

packages/outbox-core/lib/outbox.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ export class OutboxEventEmitter<SupportedEvents extends CommonEventDefinition[]>
144144
await this.storage.createEntry({
145145
id: uuidv7(),
146146
event: data,
147+
type: data.type,
147148
precedingMessageMetadata,
148149
status: 'CREATED',
149150
created: new Date(),

0 commit comments

Comments
 (0)