Skip to content

Commit

Permalink
Merge pull request #44 from lowdefy/fix-adapter
Browse files Browse the repository at this point in the history
Fixed issue where user login fails for an invited user on first signup.
  • Loading branch information
SamTolmay authored Apr 3, 2024
2 parents c70d4a4 + f5c100d commit 2bc60fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/shy-lobsters-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@lowdefy/community-plugin-mongodb': patch
---

Fixed issue where user login fails for an invited user on first signup.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ async function createDatabaseUserFromContact({
};
}

const { value: updatedContact } = await mongoClient
const updatedContact = await mongoClient
.db()
.collection(collectionNames.contacts)
.findOneAndUpdate({ _id: contact._id }, { $set: update }, { returnDocument: 'after' });
Expand Down

0 comments on commit 2bc60fa

Please sign in to comment.