diff --git a/CHANGELOG.md b/CHANGELOG.md index 83430aed..06c340fb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/app/package.json b/app/package.json index a4973bc7..cdc77cf1 100644 --- a/app/package.json +++ b/app/package.json @@ -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": [ diff --git a/app/src/Apps/wix_members.ts b/app/src/Apps/wix_members.ts index af5724c9..78a46f90 100644 --- a/app/src/Apps/wix_members.ts +++ b/app/src/Apps/wix_members.ts @@ -57,7 +57,7 @@ export async function onMemberUpdated(event: Document): Promise { } const { readyFullData, readyPrivateData, readyPublicData } = await getMemberData(memberId); - const find = { "entityId": memberId }; + const find = { "entityId": { $eq: memberId } }; // Insert to MongoDB (fire and forget) Promise.all([ @@ -88,7 +88,7 @@ export async function onMemberDeleted(event: Document): Promise { 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([