Skip to content

Commit be3f37b

Browse files
committed
Removed update method from storage.
1 parent 31522bb commit be3f37b

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/outbox-core/lib/outbox.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
1414
import { z } from 'zod'
1515
import { InMemoryOutboxAccumulator, type OutboxAccumulator } from './accumulators'
1616
import type { OutboxEntry } from './objects'
17-
import { OutboxEventEmitter, OutboxProcessor, type OutboxStorage } from './outbox'
17+
import { OutboxEventEmitter, OutboxProcessor } from './outbox'
18+
import type { OutboxStorage } from './storage'
1819

1920
const TestEvents = {
2021
created: {

packages/outbox-core/lib/storage.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ export interface OutboxStorage<SupportedEvents extends CommonEventDefinition[]>
1717

1818
flush(outboxAccumulator: OutboxAccumulator<SupportedEvents>): Promise<void>
1919

20-
update(
21-
outboxEntry: OutboxEntry<SupportedEvents[number]>,
22-
): Promise<OutboxEntry<SupportedEvents[number]>>
23-
2420
/**
2521
* Returns entries in the order they were created. It doesn't return entries with 'SUCCESS' status. It doesn't return entries that have been retried more than maxRetryCount times.
2622
*

0 commit comments

Comments
 (0)