File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ export function listNotificationsForAuthenticatedUser(
7171 const url = getGitHubAPIBaseUrl ( account . hostname ) ;
7272 url . pathname += 'notifications' ;
7373 url . searchParams . append ( 'participating' , String ( settings . participating ) ) ;
74+
7475 return apiRequestAuth (
7576 url . toString ( ) as Link ,
7677 'GET' ,
@@ -112,6 +113,7 @@ export function markNotificationThreadAsDone(
112113) : AxiosPromise < void > {
113114 const url = getGitHubAPIBaseUrl ( hostname ) ;
114115 url . pathname += `notifications/threads/${ threadId } ` ;
116+
115117 return apiRequestAuth ( url . toString ( ) as Link , 'DELETE' , token , { } ) ;
116118}
117119
@@ -216,6 +218,7 @@ export function getRelease(url: Link, token: Token): AxiosPromise<Release> {
216218export async function getHtmlUrl ( url : Link , token : Token ) : Promise < string > {
217219 try {
218220 const response = ( await apiRequestAuth ( url , 'GET' , token ) ) . data ;
221+
219222 return response . html_url ;
220223 } catch ( err ) {
221224 rendererLogError (
@@ -236,6 +239,7 @@ export async function searchDiscussions(
236239 notification : Notification ,
237240) : AxiosPromise < GraphQLSearch < Discussion > > {
238241 const url = getGitHubGraphQLUrl ( notification . account . hostname ) ;
242+
239243 return apiRequestAuth (
240244 url . toString ( ) as Link ,
241245 'POST' ,
You can’t perform that action at this time.
0 commit comments