Skip to content

Commit

Permalink
fix: 프로젝트 목록 조회 응답 데이터 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jjeonghak committed Nov 12, 2024
1 parent 847832a commit 737ace1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions apps/server/src/project/service/project.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,14 @@ export class ProjectService {
.addSelect(['p.title', 'p.createdAt'])
.getRawMany();
return result.map(
(record: { p_id: number; p_title: string; p_createdAt: Date; c_role: ContributorStatus }) => {
(record: {
c_projectId: number;
p_title: string;
p_createdAt: Date;
c_role: ContributorStatus;
}) => {
return new UserProjectsResponse(record.c_role, {
id: record.p_id,
id: record.c_projectId,
title: record.p_title,
createdAt: record.p_createdAt,
});
Expand Down

0 comments on commit 737ace1

Please sign in to comment.