@lowdefy/connection-mongodb 4.0.0-rc.7 → 4.0.0-rc.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.
@@ -27,7 +27,7 @@ async function MongodbUpdateOne({ blockId , connection , pageId , request , requ
27
27
  const { value , ...responseWithoutValue } = await collection.findOneAndUpdate(filter, update, options);
28
28
  response = responseWithoutValue;
29
29
  const after = await collection.findOne({
30
- _id: value._id
30
+ _id: value ? value._id : response.lastErrorObject?.upserted
31
31
  });
32
32
  await logCollection.insertOne({
33
33
  args: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/connection-mongodb",
3
- "version": "4.0.0-rc.7",
3
+ "version": "4.0.0-rc.8",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -42,13 +42,13 @@
42
42
  "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
43
43
  },
44
44
  "dependencies": {
45
- "@lowdefy/helpers": "4.0.0-rc.7",
45
+ "@lowdefy/helpers": "4.0.0-rc.8",
46
46
  "@next-auth/mongodb-adapter": "1.1.1",
47
47
  "mongodb": "4.13.0",
48
48
  "saslprep": "1.0.3"
49
49
  },
50
50
  "devDependencies": {
51
- "@lowdefy/ajv": "4.0.0-rc.7",
51
+ "@lowdefy/ajv": "4.0.0-rc.8",
52
52
  "@shelf/jest-mongodb": "4.1.4",
53
53
  "@swc/cli": "0.1.59",
54
54
  "@swc/core": "1.3.24",
@@ -62,5 +62,5 @@
62
62
  "publishConfig": {
63
63
  "access": "public"
64
64
  },
65
- "gitHead": "0bbeceb0a73e7c8061d83829bb5066f08cacf094"
65
+ "gitHead": "db883daef0443647439b6fe2db845b846ffb6d4e"
66
66
  }