Skip to content

Commit

Permalink
update loginCustomer with google
Browse files Browse the repository at this point in the history
  • Loading branch information
Mansourkira committed Jan 15, 2024
1 parent 0d4dbb0 commit 914060e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sikka/hajar",
"version": "1.1.47",
"version": "1.1.48",
"description": "Toolkit to create SaaS applications",
"author": "Sikka Software <[email protected]> (http://sikka.io)",
"license": "MIT",
Expand Down
3 changes: 1 addition & 2 deletions src/core/authentication/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,7 @@ class HajarAuth {
};
} else {
// User exists, perform login

const customerData = await this.Customer.findOne({ uid: user._id });
const customerData = await this.Customer.findOne({ profile: user._id });
return {
success: true,
user: { ...user.toObject() },
Expand Down

0 comments on commit 914060e

Please sign in to comment.