@cocreate/crdt 1.23.1 → 1.23.2
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 +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.23.2](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.23.1...v1.23.2) (2023-10-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* applied status resolve ([74b2804](https://github.com/CoCreate-app/CoCreate-crdt/commit/74b28045eb31042a7f63e0082de2a9fec2b09888))
|
|
7
|
+
|
|
1
8
|
## [1.23.1](https://github.com/CoCreate-app/CoCreate-crdt/compare/v1.23.0...v1.23.1) (2023-10-16)
|
|
2
9
|
|
|
3
10
|
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -61,6 +61,7 @@ async function getDoc(data) {
|
|
|
61
61
|
if (!data.newObject) {
|
|
62
62
|
let response = await crud.send({
|
|
63
63
|
method: "read.object",
|
|
64
|
+
status: "resolve",
|
|
64
65
|
array: "crdt-transactions",
|
|
65
66
|
object: {
|
|
66
67
|
$filter: {
|
|
@@ -125,7 +126,7 @@ async function checkDb(data, flag) {
|
|
|
125
126
|
if (data.newObject)
|
|
126
127
|
string = data.newObject
|
|
127
128
|
else {
|
|
128
|
-
let response = await crud.send({ method: 'read.object', array, object: { _id: object, key } });
|
|
129
|
+
let response = await crud.send({ method: 'read.object', status: "resolve", array, object: { _id: object, key } });
|
|
129
130
|
string = crud.getValueFromObject(response.object[0], key);
|
|
130
131
|
}
|
|
131
132
|
|