Skip to content

Commit

Permalink
fix: 함수 중복 호출
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeeun411 committed May 30, 2024
1 parent 6190687 commit 07bb159
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions apps/server/src/repositories/project.temp.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
};

// 스캔 커맨드에 파라미터 적용
Expand Down Expand Up @@ -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);
Expand Down
5 changes: 1 addition & 4 deletions apps/server/src/services/image.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 07bb159

Please sign in to comment.