fix: change password partner
This commit is contained in:
		| @@ -466,7 +466,7 @@ export class UsersService { | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   async updatePasswordPartner(id: string, updateUserDto: UpdateUserDto) { | ||||
|   async updatePasswordPartner(id: string, password) { | ||||
|     try { | ||||
|       const dataUser = await this.usersRepository.findOneOrFail({ | ||||
|         where: { | ||||
| @@ -474,10 +474,7 @@ export class UsersService { | ||||
|         }, | ||||
|       }); | ||||
|  | ||||
|       dataUser.password = await hashPassword( | ||||
|         updateUserDto.password, | ||||
|         dataUser.salt, | ||||
|       ); | ||||
|       dataUser.password = await hashPassword(password, dataUser.salt); | ||||
|  | ||||
|       const result = await this.usersRepository.save(dataUser); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user