Skip to content

Commit

Permalink
fix user search
Browse files Browse the repository at this point in the history
  • Loading branch information
Joabesv committed Nov 17, 2023
1 parent 50fd543 commit e962e03
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/api/facebook/func.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ const app = require('@/app')
module.exports = async (context) => {
const { ra, email } = context.body


const user = await app.models.users.findOne({ ra, email })

const user = await app.models.users.findOne({ ra, 'oauth.emailFacebook': email })

if (!user) {
return {
error: user,
Expand Down

0 comments on commit e962e03

Please sign in to comment.