Skip to content
Snippets Groups Projects
Commit 8cbd3bf9 authored by abdu's avatar abdu
Browse files

fix mapper setting wrong title

parent e78e73c1
No related branches found
No related tags found
No related merge requests found
...@@ -9,7 +9,7 @@ public class TodoMapper { ...@@ -9,7 +9,7 @@ public class TodoMapper {
public TodoDTO entityToDto(Todo todo) { public TodoDTO entityToDto(Todo todo) {
TodoDTO todoDTO = new TodoDTO(); TodoDTO todoDTO = new TodoDTO();
todoDTO.setTitle(todo.getDescription()); todoDTO.setTitle(todo.getTitle());
todoDTO.setDescription(todo.getDescription()); todoDTO.setDescription(todo.getDescription());
todoDTO.setUserId(todo.getUserId()); todoDTO.setUserId(todo.getUserId());
todoDTO.setCompleted(todo.isCompleted()); todoDTO.setCompleted(todo.isCompleted());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment