Beneficiary must be able to add to favorite a Call
This commit is contained in:
@@ -269,6 +269,14 @@ public class UserDao {
|
||||
.orElseThrow(() -> new ResourceNotFoundException(Status.NOT_FOUND,
|
||||
Translator.toLocale(GepafinConstant.USER_NOT_FOUND_MSG)));
|
||||
}
|
||||
public UserEntity getUserByBeneficiaryId(Long beneficiaryId) {
|
||||
UserEntity user = userRepository.findByBeneficiaryId(beneficiaryId);
|
||||
if (user == null) {
|
||||
throw new ResourceNotFoundException(Status.NOT_FOUND,
|
||||
Translator.toLocale(GepafinConstant.USER_NOT_FOUND_WITH_BENEFICIARYID_MSG));
|
||||
}
|
||||
return user;
|
||||
}
|
||||
|
||||
public String initiatePasswordReset(InitiatePasswordResetReq resetReq) {
|
||||
UserEntity user = userRepository.findByEmail(resetReq.getEmail());
|
||||
|
||||
Reference in New Issue
Block a user