@apibara/plugin-mongo 2.1.0-beta.16 → 2.1.0-beta.18

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.
package/dist/index.cjs CHANGED
@@ -86,7 +86,7 @@ async function persistState(props) {
86
86
  {
87
87
  $set: {
88
88
  orderKey: Number(endCursor.orderKey),
89
- uniqueKey: endCursor.uniqueKey
89
+ uniqueKey: endCursor.uniqueKey ? endCursor.uniqueKey : null
90
90
  }
91
91
  },
92
92
  { upsert: true, session }
package/dist/index.mjs CHANGED
@@ -84,7 +84,7 @@ async function persistState(props) {
84
84
  {
85
85
  $set: {
86
86
  orderKey: Number(endCursor.orderKey),
87
- uniqueKey: endCursor.uniqueKey
87
+ uniqueKey: endCursor.uniqueKey ? endCursor.uniqueKey : null
88
88
  }
89
89
  },
90
90
  { upsert: true, session }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apibara/plugin-mongo",
3
- "version": "2.1.0-beta.16",
3
+ "version": "2.1.0-beta.18",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -35,7 +35,7 @@
35
35
  "mongodb": "^6.12.0"
36
36
  },
37
37
  "dependencies": {
38
- "@apibara/indexer": "2.1.0-beta.16",
39
- "@apibara/protocol": "2.1.0-beta.16"
38
+ "@apibara/indexer": "2.1.0-beta.18",
39
+ "@apibara/protocol": "2.1.0-beta.18"
40
40
  }
41
41
  }
@@ -44,7 +44,7 @@ export async function persistState<TFilter>(props: {
44
44
  {
45
45
  $set: {
46
46
  orderKey: Number(endCursor.orderKey),
47
- uniqueKey: endCursor.uniqueKey,
47
+ uniqueKey: endCursor.uniqueKey ? endCursor.uniqueKey : null,
48
48
  },
49
49
  },
50
50
  { upsert: true, session },