Skip to content

Commit

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

---

### 4.5.1
### 4.5.1, 4.5.2

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

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.1",
"version": "4.5.2",
"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
6 changes: 3 additions & 3 deletions app/src/Apps/wix_members.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ export async function onMemberUpdated(event: Document): Promise<void> {

// Insert to MongoDB (fire and forget)
Promise.all([
(await native(`${syncDatabase}/WixMembersPublicData`, true)).updateOne(find, readyPublicData, { retryWrites: true }),
(await native(`${syncDatabase}/WixMembersPrivateData`, true)).updateOne(find, readyPrivateData, { retryWrites: true }),
(await native(`${syncDatabase}/WixMembersFullData`, true)).updateOne(find, readyFullData, { retryWrites: true }),
(await native(`${syncDatabase}/WixMembersPublicData`, true)).updateOne(find, { $set: readyPublicData }, { retryWrites: true }),
(await native(`${syncDatabase}/WixMembersPrivateData`, true)).updateOne(find, { $set: readyPrivateData }, { retryWrites: true }),
(await native(`${syncDatabase}/WixMembersFullData`, true)).updateOne(find, { $set: readyFullData }, { retryWrites: true }),
]);
} catch (err) {
// Log Error (fire and forget)
Expand Down

0 comments on commit ce2f58c

Please sign in to comment.