Skip to content

Commit

Permalink
fix: applied status resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Oct 17, 2023
1 parent 6a4e6df commit 74b2804
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Expand Up @@ -61,6 +61,7 @@ async function getDoc(data) {
if (!data.newObject) {
let response = await crud.send({
method: "read.object",
status: "resolve",
array: "crdt-transactions",
object: {
$filter: {
Expand Down Expand Up @@ -125,7 +126,7 @@ async function checkDb(data, flag) {
if (data.newObject)
string = data.newObject
else {
let response = await crud.send({ method: 'read.object', array, object: { _id: object, key } });
let response = await crud.send({ method: 'read.object', status: "resolve", array, object: { _id: object, key } });
string = crud.getValueFromObject(response.object[0], key);
}

Expand Down

0 comments on commit 74b2804

Please sign in to comment.