This commit is contained in:
@@ -99,7 +99,7 @@ public class ComplaintEntityHandler implements RequestHandler {
|
||||
MessageCode.USER_NOT_HAD_PERMISSION.getDescription());
|
||||
}
|
||||
|
||||
if (violationRepository.existsViolation(violationId)) {
|
||||
if (violationRepository.existsViolation(violation)) {
|
||||
return errorResponse(msgId, MessageCode.COMPLAINT_ALREADY_EXIST.getCode(),
|
||||
MessageCode.COMPLAINT_ALREADY_EXIST.getDescription());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user