File tree Expand file tree Collapse file tree 2 files changed +8
-12
lines changed
netlify/functions/save-discussion-background Expand file tree Collapse file tree 2 files changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -79,18 +79,15 @@ export default function NewsletterSubscribe({
79
79
headers : {
80
80
'Content-Type' : 'application/json'
81
81
}
82
- } )
83
- . then ( ( res ) => {
84
- if ( res . status === 200 ) {
85
- setFormStatus ( FormStatus . SUCCESS ) ;
86
- } else {
87
- setFormStatus ( FormStatus . ERROR ) ;
88
- }
82
+ } ) . then ( ( res ) => {
83
+ if ( res . status === 200 ) {
84
+ setFormStatus ( FormStatus . SUCCESS ) ;
85
+ } else {
86
+ setFormStatus ( FormStatus . ERROR ) ;
87
+ }
89
88
90
- return res . json ( ) ;
91
- } )
92
- // eslint-disable-next-line @typescript-eslint/no-shadow, no-console
93
- . then ( ( data ) => console . log ( data ) ) ;
89
+ return res . json ( ) ;
90
+ } ) ;
94
91
} ;
95
92
96
93
if ( status === FormStatus . SUCCESS ) {
Original file line number Diff line number Diff line change @@ -112,7 +112,6 @@ _This discussion has been created from a [slack discussion](${slackURL}). Please
112
112
* @param {string } commentId - Id of the comment that you want to be marked as answer.
113
113
*/
114
114
export async function markAnswer ( commentId : string ) {
115
- console . log ( 'marking the answer...' ) ;
116
115
await fetchGraphql ( `
117
116
mutation {
118
117
markDiscussionCommentAsAnswer(input: {id: "${ commentId } " }) {
You can’t perform that action at this time.
0 commit comments