Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
kilbot committed Mar 25, 2024
2 parents 41c75a7 + e4b5b38 commit 16b5679
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build
/dist
/docs-build
/storybook-static

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
yarn.lock
.yarn/cache
.yarn/install-state.gz
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wcpos/query",
"version": "1.5.0",
"version": "1.5.2",
"description": "Query and Replication for WooCommerce POS",
"author": "kilbot <[email protected]>",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions src/collection-replication-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class CollectionReplicationState<T extends RxCollection> extends Subscrib
* It's only tax rates that have this issue, I need to change the way they are stored
*/
let remove = this.subjects.localIDs.getValue().filter((id) => !remoteIDs.includes(id));
if (remove.length > 0 && this.collection.name !== 'taxes') {
if (remove.length > 0 && this.collection.name === 'taxes') {
remove = remove.map((id) => String(id));
}
if (remove.length > 0 && this.collection.name !== 'variations') {
Expand Down Expand Up @@ -401,7 +401,7 @@ export class CollectionReplicationState<T extends RxCollection> extends Subscrib
return this.collection.find({
selector: {
$or: [
{ id: null }, // Matches documents where id is explicitly null
{ id: { $eq: null } }, // Matches documents where id is explicitly null
{ id: { $exists: false } }, // Matches documents where id is not defined
],
},
Expand Down

0 comments on commit 16b5679

Please sign in to comment.