@jcbuisson/express-x 1.6.7 → 1.6.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/context.mjs +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jcbuisson/express-x",
3
- "version": "1.6.7",
3
+ "version": "1.6.8",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "src/index.mjs",
package/src/context.mjs CHANGED
@@ -8,7 +8,7 @@ export async function getContextConnection(context) {
8
8
  export async function resetConnection(context) {
9
9
  const id = context.params.connectionId
10
10
  // by using updateMany, we cover the case where the connection `id` no longer exists
11
- await context.app.prisma.Connection.update({
11
+ await context.app.prisma.Connection.updateMany({
12
12
  where: { id },
13
13
  data: {
14
14
  data: '{}',