Skip to content

Commit

Permalink
fix:remove select false for password prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Santiago Olayo committed Jun 23, 2024
1 parent 0598754 commit dba679e
Showing 4 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -14,8 +14,8 @@ lerna-debug.log*

# OS
.DS_Store
private.key
public.key
private_key.pem
public_key.pem
var_env.sh
# Tests
/coverage
2 changes: 1 addition & 1 deletion src/auth/auth.service.ts
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@ export class AuthService {

async login(data: LoginRequestDto): Promise<LoginResponseDto> {
const user = await this.userService.findOne({ email: data.email });
console.log(user);

if (!user) {
throw new NotFoundException('User not found');
}
1 change: 0 additions & 1 deletion src/user/user.entity.ts
Original file line number Diff line number Diff line change
@@ -15,7 +15,6 @@ export class User {

@Column({
type: 'text',
select: false,
})
password: string;

2 changes: 0 additions & 2 deletions src/user/user.service.ts
Original file line number Diff line number Diff line change
@@ -19,7 +19,5 @@ export class UserService {
async create(user: DeepPartial<User>): Promise<User> {
const userEntity = this.userRepository.create(user);
return this.userRepository.save(userEntity);


}
}

0 comments on commit dba679e

Please sign in to comment.