@cocreate/indexeddb 1.3.11 → 1.3.12
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/index.js +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.3.12](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.3.11...v1.3.12) (2022-11-26)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* delete db, database and collection from doc before storing in indexeddb ([642bca1](https://github.com/CoCreate-app/CoCreate-indexeddb/commit/642bca11d98fb89b6f3c2750286971309b1417bc))
|
|
7
|
+
|
|
1
8
|
## [1.3.11](https://github.com/CoCreate-app/CoCreate-indexeddb/compare/v1.3.10...v1.3.11) (2022-11-26)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -704,6 +704,10 @@ function runDocs({action, data, objectStore, documents, filterDocs, database, co
|
|
|
704
704
|
if (docsLength > 0) {
|
|
705
705
|
for (let doc of docs) {
|
|
706
706
|
// ToDo deDuplcate document_id per collection
|
|
707
|
+
delete doc.db
|
|
708
|
+
delete doc.database
|
|
709
|
+
delete doc.collection
|
|
710
|
+
|
|
707
711
|
if (action == 'updateDocument' || action == 'deleteDocument') {
|
|
708
712
|
if (doc._id) {
|
|
709
713
|
doc['organization_id'] = data.organization_id
|