Skip to content

Commit 7f4649b

Browse files
committed
CLAP-309 Fix : 엘라스틱서치에 저장할 작업 정보 수정
<footer> - 관련: #378
1 parent 473387a commit 7f4649b

File tree

1 file changed

+3
-3
lines changed
  • src/main/java/clap/server/adapter/outbound/infrastructure/elastic/document

1 file changed

+3
-3
lines changed

src/main/java/clap/server/adapter/outbound/infrastructure/elastic/document/TaskDocument.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import org.springframework.data.elasticsearch.annotations.Field;
88
import org.springframework.data.elasticsearch.annotations.Mapping;
99

10-
import java.time.LocalDate;
10+
import java.time.LocalDateTime;
1111

1212
@Document(indexName = "task")
1313
@Mapping(mappingPath = "elastic/task-mapping.json")
@@ -26,7 +26,7 @@ public class TaskDocument {
2626
@Field(name="processor")
2727
private String processor;
2828
@Field(name="created_at")
29-
private LocalDate createdAt;
29+
private LocalDateTime createdAt;
3030

3131
public TaskDocument(Task taskEntity) {
3232
this.id = taskEntity.getTaskId();
@@ -35,6 +35,6 @@ public TaskDocument(Task taskEntity) {
3535
this.subCategory = taskEntity.getCategory().getName();
3636
this.status = taskEntity.getTaskStatus().name().toLowerCase();
3737
this.processor = taskEntity.getProcessor().getMemberInfo().getNickname();
38-
this.createdAt = taskEntity.getCreatedAt().toLocalDate();
38+
this.createdAt = taskEntity.getCreatedAt();
3939
}
4040
}

0 commit comments

Comments
 (0)