@nu-art/ts-common 0.200.110 → 0.200.112
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/package.json +1 -1
- package/utils/db-object-tools.js +2 -1
package/package.json
CHANGED
package/utils/db-object-tools.js
CHANGED
|
@@ -9,6 +9,7 @@ function dbObjectToId(i) {
|
|
|
9
9
|
exports.dbObjectToId = dbObjectToId;
|
|
10
10
|
function removeDBObjectKeys(instance) {
|
|
11
11
|
const _instance = (0, object_tools_1.deepClone)(instance);
|
|
12
|
-
|
|
12
|
+
exports.KeysOfDB_Object.forEach(key => delete _instance[key]);
|
|
13
|
+
return _instance;
|
|
13
14
|
}
|
|
14
15
|
exports.removeDBObjectKeys = removeDBObjectKeys;
|