File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff 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 ( ( ) => {
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments