This commit is contained in:
@@ -44,15 +44,6 @@ public class ComplaintEntityService {
|
||||
throw new DuplicateComplaintException("Complaint already exists for violation: " + request.getViolationId());
|
||||
}
|
||||
|
||||
String linksJson = null;
|
||||
if (request.getLinks() != null && !request.getLinks().isEmpty()) {
|
||||
try {
|
||||
linksJson = objectMapper.writeValueAsString(request.getLinks());
|
||||
} catch (JsonProcessingException e) {
|
||||
linksJson = request.getLinks().toString();
|
||||
}
|
||||
}
|
||||
|
||||
ComplaintEntity complaint = ComplaintEntity.builder()
|
||||
.status(ComplaintStatus.CREATED)
|
||||
.complaintText(request.getComplaintText())
|
||||
|
||||
Reference in New Issue
Block a user