Skip to content

Commit

Permalink
Applied recent changes to samples
Browse files Browse the repository at this point in the history
  • Loading branch information
oskardudycz committed Jan 3, 2025
1 parent edb48f3 commit 8f6f912
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 73 deletions.
38 changes: 19 additions & 19 deletions samples/webApi/expressjs-with-esdb/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions samples/webApi/expressjs-with-esdb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
},
"homepage": "https://github.com/event-driven-io/emmett#readme",
"dependencies": {
"@event-driven-io/emmett": "0.23.0-alpha.10",
"@event-driven-io/emmett-esdb": "0.23.0-alpha.10",
"@event-driven-io/emmett-expressjs": "0.23.0-alpha.10",
"@event-driven-io/emmett-testcontainers": "0.23.0-alpha.10"
"@event-driven-io/emmett": "0.23.0-alpha.12",
"@event-driven-io/emmett-esdb": "0.23.0-alpha.12",
"@event-driven-io/emmett-expressjs": "0.23.0-alpha.12",
"@event-driven-io/emmett-testcontainers": "0.23.0-alpha.12"
},
"devDependencies": {
"@types/node": "20.11.30",
Expand Down
28 changes: 14 additions & 14 deletions samples/webApi/expressjs-with-mongodb/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions samples/webApi/expressjs-with-mongodb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
},
"homepage": "https://github.com/event-driven-io/emmett#readme",
"dependencies": {
"@event-driven-io/emmett": "0.23.0-alpha.10",
"@event-driven-io/emmett-expressjs": "0.23.0-alpha.10",
"@event-driven-io/emmett-mongodb": "0.23.0-alpha.10"
"@event-driven-io/emmett": "0.23.0-alpha.12",
"@event-driven-io/emmett-expressjs": "0.23.0-alpha.12",
"@event-driven-io/emmett-mongodb": "0.23.0-alpha.12"
},
"devDependencies": {
"@testcontainers/mongodb": "^10.10.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ export const addProductItem = (
shoppingCartId,
clientId,
productItem,
addedAt: metadata?.now ?? new Date(),
addedAt: metadata.now,
},
metadata: { clientId: metadata!.clientId },
metadata: { clientId: metadata.clientId },
};
};

Expand All @@ -117,9 +117,9 @@ export const removeProductItem = (
data: {
shoppingCartId,
productItem,
removedAt: metadata?.now ?? new Date(),
removedAt: metadata.now,
},
metadata: { clientId: metadata!.clientId },
metadata: { clientId: metadata.clientId },
};
};

Expand All @@ -144,9 +144,9 @@ export const confirm = (
type: 'ShoppingCartConfirmed',
data: {
shoppingCartId,
confirmedAt: metadata?.now ?? new Date(),
confirmedAt: metadata.now,
},
metadata: { clientId: metadata!.clientId },
metadata: { clientId: metadata.clientId },
};
};

Expand All @@ -166,9 +166,9 @@ export const cancel = (
type: 'ShoppingCartCancelled',
data: {
shoppingCartId,
cancelledAt: metadata?.now ?? new Date(),
cancelledAt: metadata.now,
},
metadata: { clientId: metadata!.clientId },
metadata: { clientId: metadata.clientId },
};
};

Expand Down
28 changes: 14 additions & 14 deletions samples/webApi/expressjs-with-postgresql/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions samples/webApi/expressjs-with-postgresql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
},
"homepage": "https://github.com/event-driven-io/emmett#readme",
"dependencies": {
"@event-driven-io/emmett": "0.23.0-alpha.10",
"@event-driven-io/emmett-expressjs": "0.23.0-alpha.10",
"@event-driven-io/emmett-postgresql": "0.23.0-alpha.10"
"@event-driven-io/emmett": "0.23.0-alpha.12",
"@event-driven-io/emmett-expressjs": "0.23.0-alpha.12",
"@event-driven-io/emmett-postgresql": "0.23.0-alpha.12"
},
"devDependencies": {
"@testcontainers/postgresql": "^10.10.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ export const addProductItem = (
shoppingCartId,
clientId,
productItem,
addedAt: metadata?.now ?? new Date(),
addedAt: metadata.now,
},
metadata: { clientId: metadata!.clientId },
metadata: { clientId: metadata.clientId },
};
};

Expand All @@ -117,9 +117,9 @@ export const removeProductItem = (
data: {
shoppingCartId,
productItem,
removedAt: metadata?.now ?? new Date(),
removedAt: metadata.now,
},
metadata: { clientId: metadata!.clientId },
metadata: { clientId: metadata.clientId },
};
};

Expand All @@ -144,9 +144,9 @@ export const confirm = (
type: 'ShoppingCartConfirmed',
data: {
shoppingCartId,
confirmedAt: metadata?.now ?? new Date(),
confirmedAt: metadata.now,
},
metadata: { clientId: metadata!.clientId },
metadata: { clientId: metadata.clientId },
};
};

Expand All @@ -166,9 +166,9 @@ export const cancel = (
type: 'ShoppingCartCancelled',
data: {
shoppingCartId,
cancelledAt: metadata?.now ?? new Date(),
cancelledAt: metadata.now,
},
metadata: { clientId: metadata!.clientId },
metadata: { clientId: metadata.clientId },
};
};

Expand Down

0 comments on commit 8f6f912

Please sign in to comment.