Commit 16c4ac3b authored by Matija Obreza's avatar Matija Obreza
Browse files

Fixed issue with double confirmation emails sent to genebank

parent 6ae4581c
......@@ -207,17 +207,7 @@ public class RequestServiceImpl implements RequestService {
final MaterialRequest materialRequest = requestRepository.findByUuid(consumedToken.getData());
validateRequest(materialRequest);
if (StringUtils.isNotBlank(materialRequest.getPid())) {
// If PID is registered, break the request up
breakup(materialRequest);
relayRequests(materialRequest);
return materialRequest;
} else {
// Notify user
throw new NoPidException("Not registered with PID server");
}
return validateRequest(materialRequest);
}
@Transactional
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment