Skip to content

Commit

Permalink
fix: renamed filter to $filter and use as object.$filter
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Sep 13, 2023
1 parent 14e003a commit ee6eba4
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,14 @@ async function getDoc(data) {
let response = await crud.send({
method: "read.object",
array: "crdt-transactions",
filter: {
query: [{
key: 'docName',
operator: "$eq",
value: docName
}]
object: {
$filter: {
query: [{
key: 'docName',
operator: "$eq",
value: docName
}]
}
}
});
if (response.object && response.object[0] && response.object[0].changeLog) {
Expand Down

0 comments on commit ee6eba4

Please sign in to comment.