Skip to content

Commit

Permalink
fix docs typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasAribart committed Mar 10, 2023
1 parent 85f3896 commit 489d3e8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/dynamodb-event-storage-adapter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ This adapter persists aggregates in **separate partitions**: When persisting an

A [Global Secondary Index](https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GSI.html) is also required to efficiently retrieve the event store aggregates ids (`listAggregateIds` operation). Only initial events (`version = 1`) are projected. A `KEYS_ONLY` projection type is sufficient.

```json
```ts
// πŸ‘‡ Initial event
{
"aggregateId": "123", // <= Partition key
Expand Down
6 changes: 3 additions & 3 deletions packages/event-bridge-message-bus-adapter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ import { EventBridgeMessageBusAdapter } from '@castore/event-bridge-message-bus-
const eventBridgeClient = new EventBridgeClient({});

const messageBusAdapter = new EventBridgeMessageBusAdapter({
eventBusName: 'my-table-name',
eventBusName: 'my-event-bus-name',
eventBridgeClient,
});

Expand All @@ -54,13 +54,13 @@ This will directly plug your MessageBus to EventBridge πŸ™Œ

When publishing a message, its `eventStoreId` is used as the message `source` and its event `type` is used as `detail-type`. The whole message is passed to the `detail` property.

```json
```ts
// πŸ‘‡ Entry example
{
"source": "USERS", // <= eventStoreId
"detail-type": "USER_CREATED", // <= event type
"detail": {
"eventSourceId": "USERS",
"eventStoreId": "USERS",
"event": {
"aggregateId": "123",
"version": 1,
Expand Down
4 changes: 2 additions & 2 deletions packages/sqs-message-queue-adapter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ This will directly plug your MessageQueue to SQS πŸ™Œ

When publishing a message, it is JSON stringified and passed as the record body.

```json
```ts
// πŸ‘‡ Record example
{
"body": "{
\"eventSourceId\": \"USERS\",
\"eventStoreId\": \"USERS\",
\"event\": {
\"aggregateId\": \"123\",
\"version\": 1,
Expand Down

0 comments on commit 489d3e8

Please sign in to comment.