Skip to content

Commit 23d380c

Browse files
committed
Push to array.
1 parent e35c334 commit 23d380c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/outbox-core/lib/accumulators.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ export class InMemoryOutboxAccumulator<SupportedEvents extends CommonEventDefini
4646
private failedEntries: OutboxEntry<SupportedEvents[number]>[] = []
4747

4848
public add(outboxEntry: OutboxEntry<SupportedEvents[number]>) {
49-
this.entries = [...this.entries, outboxEntry]
49+
this.entries.push(outboxEntry)
5050

5151
return Promise.resolve()
5252
}
5353

5454
public addFailure(outboxEntry: OutboxEntry<SupportedEvents[number]>) {
55-
this.failedEntries = [...this.failedEntries, outboxEntry]
55+
this.failedEntries.push(outboxEntry)
5656

5757
return Promise.resolve()
5858
}

0 commit comments

Comments
 (0)