Skip to content

Commit

Permalink
fix: member profile
Browse files Browse the repository at this point in the history
  • Loading branch information
facugon committed Apr 8, 2024
1 parent ae03bd4 commit 2a036da
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/router/auth/msazure.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,10 @@ module.exports = (app) => {
}
return passport
}

const memberCreate = async (user, customer) => {
let member = await app.models.member.findOne({
user_id: user.id,
user_id: user._id,
customer_id: customer._id
})

Expand All @@ -174,7 +175,8 @@ module.exports = (app) => {
customer: customer._id,
customer_id: customer._id,
customer_name: customer.name,
credential: (profile.credential || 'user')
//credential: (profile?.credential || 'user')
credential: 'user'
})
}
return member
Expand Down

0 comments on commit 2a036da

Please sign in to comment.