add currentUser query

This commit is contained in:
João Geonizeli
2021-08-07 12:46:39 -03:00
parent 79047938d1
commit 94e9aa08b4
6 changed files with 43 additions and 15 deletions

View File

@@ -8,8 +8,8 @@ module Auth
@email = attributes[:email]
end
def customer
@customer ||= Customer.find_by(email: email, auth_id: id)
def user
@user ||= User.find_by(email: email)
end
end
end