Skip to content

Commit a9adb32

Browse files
committed
fix: redis 값 삭제 안 하던 이슈 해결
1 parent a316695 commit a9adb32

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

apps/backend/src/tasks/tasks.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ export class TasksService {
2020
keys.map(async (key) => {
2121
const { title, content } = await this.redisService.get(key);
2222
const pageId = parseInt(key.split(':')[1]);
23-
if (title === null) {
23+
if (title === undefined) {
2424
const jsonContent = JSON.parse(content);
2525
await this.pageService.updatePage(pageId, {
2626
content: jsonContent,
2727
});
28-
} else if (content === null) {
28+
} else if (content === undefined) {
2929
await this.pageService.updatePage(pageId, {
3030
title,
3131
});
@@ -35,8 +35,8 @@ export class TasksService {
3535
title,
3636
content: jsonContent,
3737
});
38-
await this.redisService.delete(key);
3938
}
39+
await this.redisService.delete(key);
4040
}),
4141
)
4242
.then(() => {

apps/backend/src/yjs/yjs.service.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ export class YjsService
190190
const { title, id } = node.data;
191191
const { x, y } = node.position;
192192
const isHolding = node.isHolding;
193-
this.logger.log('log', node);
194193
if (!isHolding) {
195194
// TODO : node의 경우 key 값을 page id가 아닌 node id로 변경
196195
const findPage = await this.pageService.findPageById(id);

0 commit comments

Comments
 (0)