nestJS에서 typeORM과 함께 백엔드를 공부하고있는데 User 정보를 업데이트 하는 과정에서 비밀번호를 암호와 해야 했기에 @BeforeUpdate()를 사용해주었는데 작동을 안하잖아..? 💡기존 코드 // user.entitiy.ts @BeforeInsert() @BeforeUpdate() async hashPassword(): Promise { try { this.password = await bcrypt.hash(this.password, 10); } catch (error) { console.log(error); throw new InternalServerErrorException(); } } /*****************************************************..