File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,16 @@ export function copyFileComments_(
31
31
}
32
32
const replies = comment . replies ;
33
33
comment . replies = [ ] ;
34
- const commentId = driveService . Comments . create ( comment , destinationID ) . id ;
34
+ const commentId = driveService . Comments . create ( comment , destinationID , {
35
+ id : true ,
36
+ } ) . id ;
35
37
for ( const reply of replies ) {
36
38
if ( ! reply . author . me ) {
37
39
reply . content = `*${ reply . author . displayName } :*\n${ reply . content } ` ;
38
40
}
39
- driveService . Replies . create ( reply , destinationID , commentId ) ;
41
+ driveService . Replies . create ( reply , destinationID , commentId , {
42
+ fields : "id" ,
43
+ } ) ;
40
44
}
41
45
}
42
46
}
Original file line number Diff line number Diff line change @@ -77,7 +77,9 @@ export const SafeCommentsCollection_ = {
77
77
fileId : string ,
78
78
fields : F ,
79
79
) : DeepPick < SafeComment , F > => {
80
- const ret = Drive . Comments . create ( resource , fileId ) ;
80
+ const ret = Drive . Comments . create ( resource , fileId , {
81
+ fields : stringifyFields_ ( fields ) ,
82
+ } ) ;
81
83
if ( ! commentIsSafe_ ( ret , fields ) ) {
82
84
throw new Error ( "Comments.create: Comment is not safe." ) ;
83
85
}
You can’t perform that action at this time.
0 commit comments