Commit fe1367b2 authored by Rajendra Kishor Rahu's avatar Rajendra Kishor Rahu
Browse files

condition correction for request by in update

Showing with 1 addition and 1 deletion
+1 -1
......@@ -295,7 +295,7 @@ public class TicketServiceImpl implements TicketService {
}
if(updateTicketRequest.getIsJunk()!=null) {
ticket.setJunk(updateTicketRequest.getIsJunk());
if (updateTicketRequest.getRequestedBy() != null && updateTicketRequest.getRequestedBy().isBlank()) {
if (updateTicketRequest.getRequestedBy() == null || updateTicketRequest.getRequestedBy().isBlank()) {
ticket.setJunkedBy("-1");
} else {
User user = userRepository.findByKeycloakId(updateTicketRequest.getRequestedBy()).orElseThrow();
......
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