Skip to content

Commit

Permalink
fix: update to support new query system
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed Jan 13, 2024
1 parent eff9068 commit 2eeba4e
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/index.js
Expand Up @@ -63,11 +63,7 @@ async function getObject(data) {
array: "crdt",
object: {
$filter: {
query: [{
key: 'name',
operator: "$eq",
value: name
}],
query: { name },
limit: 1
}
}
Expand Down Expand Up @@ -254,9 +250,7 @@ function persistChange(data, change) {
}
},
$filter: {
query: [
{ key: 'name', value: name, operator: '$eq', index: true }
],
query: { name },
limit: 1
},
upsert: true,
Expand Down

0 comments on commit 2eeba4e

Please sign in to comment.