diff --git a/apps/server/src/repositories/project.temp.repository.ts b/apps/server/src/repositories/project.temp.repository.ts index 0d578b2..22ddfb0 100644 --- a/apps/server/src/repositories/project.temp.repository.ts +++ b/apps/server/src/repositories/project.temp.repository.ts @@ -13,7 +13,7 @@ export class ProjectTempRepository { public async deleteProject(title: string) { const getProjectParams: GetCommandInput = { TableName: 'LemonSandbox', - Key: { pkey: title, skey: 'PROJECT' }, + Key: { pkey: 'P' + title, skey: 'PROJECT' }, }; // 스캔 커맨드에 파라미터 적용 @@ -58,7 +58,7 @@ export class ProjectTempRepository { // 프로젝트 삭제 const projectDeleteParams: DeleteCommandInput = { TableName: 'LemonSandbox', - Key: { pkey: title, skey: 'PROJECT' }, + Key: { pkey: 'P' + title, skey: 'PROJECT' }, }; const projectDeleteCommand = new DeleteCommand(projectDeleteParams); diff --git a/apps/server/src/services/image.service.ts b/apps/server/src/services/image.service.ts index 00fe157..4804d00 100644 --- a/apps/server/src/services/image.service.ts +++ b/apps/server/src/services/image.service.ts @@ -43,10 +43,7 @@ export class ImageService { const labelsData: LabelPoints = {}; for (const label of labels) { - labelsData[label] = [ - JSON.parse(JSON.stringify(labelStructure)), - JSON.parse(JSON.stringify(labelStructure)), - ]; + labelsData[label] = [JSON.parse(JSON.stringify(labelStructure))]; } return labelsData; }