@@ -47,8 +47,8 @@ async function getAll(
4747) : Promise < IStandardResponse > {
4848 try {
4949 const postId = OperationUtils . parseNumericParam (
50- executeFunctions . getNodeParameter ( 'postId' , itemIndex ) ,
51- 'postId'
50+ executeFunctions . getNodeParameter ( 'postId' , itemIndex ) ,
51+ 'postId' ,
5252 ) ;
5353 const limitParam = executeFunctions . getNodeParameter ( 'limit' , itemIndex , '' ) ;
5454 const limit = OperationUtils . parseLimit ( limitParam ) ;
@@ -59,13 +59,13 @@ async function getAll(
5959 commentsIterable ,
6060 limit ,
6161 ( comment : any , publicationAddress : string ) => DataFormatters . formatComment ( comment , postId ) ,
62- publicationAddress
62+ publicationAddress ,
6363 ) ;
6464
6565 return {
6666 success : true ,
6767 data : results ,
68- metadata : { status : 'success' }
68+ metadata : { status : 'success' } ,
6969 } ;
7070 } catch ( error ) {
7171 return SubstackUtils . formatErrorResponse ( {
@@ -84,8 +84,8 @@ async function getCommentById(
8484) : Promise < IStandardResponse > {
8585 try {
8686 const commentId = OperationUtils . parseNumericParam (
87- executeFunctions . getNodeParameter ( 'commentId' , itemIndex ) ,
88- 'commentId'
87+ executeFunctions . getNodeParameter ( 'commentId' , itemIndex ) ,
88+ 'commentId' ,
8989 ) ;
9090
9191 const comment = await client . commentForId ( commentId ) ;
@@ -94,7 +94,7 @@ async function getCommentById(
9494 return {
9595 success : true ,
9696 data : result ,
97- metadata : { status : 'success' }
97+ metadata : { status : 'success' } ,
9898 } ;
9999 } catch ( error ) {
100100 return SubstackUtils . formatErrorResponse ( {
@@ -116,4 +116,4 @@ export const commentOperationHandlers: Record<
116116> = {
117117 [ CommentOperation . GetAll ] : getAll ,
118118 [ CommentOperation . GetCommentById ] : getCommentById ,
119- } ;
119+ } ;
0 commit comments