Skip to content

Commit d2cb867

Browse files
authored
Fix bug
1 parent 0c75156 commit d2cb867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/example/tasklist/service/impl/TaskServiceImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public Task create(
8989
final Task task,
9090
final Long userId
9191
) {
92-
if (task.getStatus() != null) {
92+
if (task.getStatus() == null) {
9393
task.setStatus(Status.TODO);
9494
}
9595
taskRepository.save(task);

0 commit comments

Comments
 (0)