@frogfish/k2db 1.0.10 → 1.0.11

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/db.js +4 -1
  2. package/package.json +1 -1
package/db.js CHANGED
@@ -76,7 +76,10 @@ class K2DB {
76
76
  }
77
77
  }
78
78
  async get(collectionName, uuid) {
79
- const res = await this.findOne(collectionName, { _uuid: uuid });
79
+ const res = await this.findOne(collectionName, {
80
+ _uuid: uuid,
81
+ _deleted: { $ne: true },
82
+ });
80
83
  if (!res) {
81
84
  throw new k2error_1.K2Error(k2error_1.ServiceError.SYSTEM_ERROR, "Error getting the document with provided identity", "sys_mdb_get");
82
85
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frogfish/k2db",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "A data handling library for K2 applications.",
5
5
  "main": "data.js",
6
6
  "types": "data.d.ts",