Skip to content

Commit

Permalink
BUG Fixes for Sync Plug-in
Browse files Browse the repository at this point in the history
  • Loading branch information
loeiks committed Jul 18, 2024
1 parent 89fb9a3 commit a3f2b80
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ In this file you can find what's changed in each version. (Versions with -dev, -

---

### 4.5.1

- BUG Fixes and TS type fixes. For Wix Members sync plug-in.

### 4.5.0

- New plug-in, sync Wix Members collection into your MongoDB databae to perform lookups easily with your own custom collections.
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@exweiv/weiv-data",
"version": "4.5.0",
"version": "4.5.1",
"description": "Custom API Library for Wix sites to connect MongoDB. Designed to easily switch from wix-data APIs.",
"main": "./lib/index.js",
"files": [
Expand Down
4 changes: 2 additions & 2 deletions app/src/Apps/wix_members.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export async function onMemberUpdated(event: Document): Promise<void> {
}

const { readyFullData, readyPrivateData, readyPublicData } = await getMemberData(memberId);
const find = { "entityId": memberId };
const find = { "entityId": { $eq: memberId } };

// Insert to MongoDB (fire and forget)
Promise.all([
Expand Down Expand Up @@ -88,7 +88,7 @@ export async function onMemberDeleted(event: Document): Promise<void> {
kaptanLogar("00024", "You didn't configure any database name to sync Wix apps data!");
}

const find = { "entityId": memberId };
const find = { "entityId": { $eq: memberId } };

// Insert to MongoDB (fire and forget)
Promise.all([
Expand Down

0 comments on commit a3f2b80

Please sign in to comment.