File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -296,7 +296,6 @@ slide: false
296
296
updated_at : "" ,
297
297
organization_url_name : null ,
298
298
slide : false ,
299
- draft : false ,
300
299
} ;
301
300
const remoteFilename = `${ id } .md` ;
302
301
const localFilename = remoteFilename ;
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class FileContent {
25
25
organizationUrlName,
26
26
rawBody,
27
27
slide,
28
- draft,
28
+ draft = false ,
29
29
} : {
30
30
title : string ;
31
31
tags : string [ ] ;
@@ -59,7 +59,7 @@ class FileContent {
59
59
id : data . id ,
60
60
organizationUrlName : data . organization_url_name ,
61
61
slide : data . slide ,
62
- draft : data . draft ,
62
+ draft : data . draft ?? false ,
63
63
} ) ;
64
64
}
65
65
@@ -93,7 +93,7 @@ class FileContent {
93
93
id : item . id ,
94
94
organizationUrlName : item . organization_url_name ,
95
95
slide : item . slide ,
96
- draft : item . draft ,
96
+ draft : false ,
97
97
} ) ;
98
98
}
99
99
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ export interface Item {
26
26
created_at : string ;
27
27
updated_at : string ;
28
28
slide : boolean ;
29
- draft : boolean ;
30
29
}
31
30
32
31
export class QiitaApi {
You can’t perform that action at this time.
0 commit comments