fix: fixed the user type error in auth.service file

This commit is contained in:
Balu Babu
2023-01-27 13:38:36 +05:30
parent ca4c576f78
commit fe73750d66
4 changed files with 52 additions and 6339 deletions

View File

@@ -201,7 +201,7 @@ export class AuthService {
* @param profile Provider Account type (Magic,Google,Github,Microsoft)
* @returns {Promise<O.None | O.Some<Account>>} Either of existing user provider Account
*/
async checkIfProviderAccountExists(user: User, profile) {
async checkIfProviderAccountExists(user: AuthUser, profile) {
const provider = await this.prismaService.account.findUnique({
where: {
verifyProviderAccount: {