Skip to content

Commit dc21f92

Browse files
committed
fix: 불필요한 파일 삭제 및 하위 subTree connection 연결되어있는 경우 저장되는 오류 해결
1 parent 3908f9f commit dc21f92

File tree

7 files changed

+12
-571
lines changed

7 files changed

+12
-571
lines changed

packages/collaborative/src/collaborative/collaborative.service.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ export class CollaborativeService {
2121
length: space.length,
2222
});
2323

24+
2425
let spaceJsonData;
2526
try {
2627
spaceJsonData = JSON.parse(space);
@@ -59,6 +60,7 @@ export class CollaborativeService {
5960
method: 'findBySpace',
6061
spaceId: id,
6162
});
63+
6264

6365
const space = await this.spaceService.findById(id);
6466

packages/collaborative/src/note/note.controller.ts

Lines changed: 0 additions & 132 deletions
This file was deleted.

packages/collaborative/src/note/note.service.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { BadRequestException, Injectable, Logger } from '@nestjs/common';
22
import { InjectModel } from '@nestjs/mongoose';
33
import { Model } from 'mongoose';
4-
import { v4 as uuid } from 'uuid';
54

65
import { ERROR_MESSAGES } from '../common/constants/error.message.constants';
76
import { NoteDocument } from './note.schema';
@@ -15,22 +14,6 @@ export class NoteService {
1514
private readonly noteModel: Model<NoteDocument>,
1615
) {}
1716

18-
async create(userId: string, noteName: string) {
19-
this.logger.log(`사용자 ${userId}에 대한 새로운 노트를 생성 중입니다.`);
20-
21-
const noteDto = {
22-
id: uuid(),
23-
userId,
24-
name: noteName,
25-
};
26-
27-
const note = await this.noteModel.create(noteDto);
28-
29-
this.logger.debug(`노트 생성 완료 - ID: ${note.id}, 이름: ${note.name}`);
30-
31-
return note;
32-
}
33-
3417
async findById(id: string) {
3518
this.logger.log(`ID가 ${id}인 노트를 검색 중입니다.`);
3619

packages/collaborative/src/space/space.controller.spec.ts

Lines changed: 0 additions & 123 deletions
This file was deleted.

0 commit comments

Comments
 (0)