fix: 내 업무·AI 컨텍스트 orderBy 컬럼명 버그(databaseName) 수정
listAssigned/listIssued 가 to-many 조인 + 페이지네이션 정렬에서 DB 컬럼명 'task.due_date' 를 사용해, TypeORM distinct 경로가 컬럼 메타데이터를 못 찾아 "Cannot read properties of undefined (reading 'databaseName')" 로 크래시. 정렬 키를 엔티티 속성명 'task.dueDate' 로 변경 — 내 업무 화면 + AI 컨텍스트 동시 복구. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -904,7 +904,7 @@ export class TaskService {
|
||||
.getQuery(),
|
||||
)
|
||||
.setParameter('userId', userId)
|
||||
.orderBy('task.due_date', 'ASC', 'NULLS LAST')
|
||||
.orderBy('task.dueDate', 'ASC', 'NULLS LAST')
|
||||
.addOrderBy('task.seq', 'DESC')
|
||||
.skip(pg.skip)
|
||||
.take(pg.take)
|
||||
@@ -930,7 +930,7 @@ export class TaskService {
|
||||
.leftJoinAndSelect('task.issuer', 'issuer')
|
||||
.leftJoinAndSelect('task.checklist', 'checklist')
|
||||
.where('task.issuer = :userId', { userId })
|
||||
.orderBy('task.due_date', 'ASC', 'NULLS LAST')
|
||||
.orderBy('task.dueDate', 'ASC', 'NULLS LAST')
|
||||
.addOrderBy('task.seq', 'DESC')
|
||||
.skip(pg.skip)
|
||||
.take(pg.take)
|
||||
|
||||
Reference in New Issue
Block a user