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());
if (StringUtils.isNotBlank(materialRequest.getPid())) {
// If PID is registered, break the request up
return materialRequest;
} else {
// Notify user
throw new NoPidException("Not registered with PID server");
return validateRequest(materialRequest);
Supports Markdown
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