Skip to content

Commit 8f745d5

Browse files
committed
Polish
1 parent 1cec54d commit 8f745d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

todo-api/src/main/java/lol/maki/dev/todo/TodoService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public Todo create(String todoTitle, String email) {
4545
return this.todoRepository.save(updated);
4646
}
4747

48-
public Todo update(String todoId, String todoTitle, boolean finished, String email) {
48+
public Todo update(String todoId, String todoTitle, boolean finished, String username) {
4949
return this.todoRepository.findById(todoId).map(t -> {
5050
TodoBuilder builder = TodoBuilder.from(t);
5151
boolean touched = false;
@@ -58,7 +58,7 @@ public Todo update(String todoId, String todoTitle, boolean finished, String ema
5858
touched = true;
5959
}
6060
if (touched) {
61-
builder.updatedBy(email);
61+
builder.updatedBy(username);
6262
builder.updatedAt(this.clock.instant());
6363
}
6464
return builder.build();

0 commit comments

Comments
 (0)