@@ -11,7 +11,7 @@ let SendEmailBodyInvite = emailTemp.sendInviteemail;
1111let SendEmailBodyDecline = emailTemp . sendDeclineemail ;
1212
1313let domainKey = process . env . domainKey ;
14- let baseUrl = 'http ://api.' + domainKey ;
14+ let baseUrl = 'https ://api.' + domainKey ;
1515
1616let schemaName = {
1717 'properties' : {
@@ -95,13 +95,15 @@ class Service {
9595 // previous_packages[subscriptionId].role = _.omit(previous_packages[subscriptionId].role, Role1);
9696 }
9797 /* eslint-disable no-undef */
98- axios . put ( baseUrl + '/user/updateuserdetails/' + userId , { package : previous_packages } , { headers : { 'Authorization' : apiHeaders . authorization } } ) . then ( async ( ( result ) => {
98+ /* eslint-disable */
99+ axios . put ( baseUrl + '/user/updateuserdetails/' + userId , { package : previous_packages } , { headers : { 'Authorization' : apiHeaders . authorization } } )
100+ . then ( async ( ( result ) => {
99101 if ( result . data . code == 201 ) {
100102 let subscription_invite = await ( self . subscription_invitation ( data , res ) ) ;
101103 self . sendEmail ( data , res ) ;
102104 }
103105 resolve ( result . data ) ;
104- } ) . catch ( ( err ) => {
106+ } ) ) . catch ( ( err ) => {
105107 let errorObj = { } ;
106108 if ( apiHeaders . authorization == undefined ) {
107109 errorObj . statusText = 'missing Authorization header' ;
@@ -115,7 +117,7 @@ class Service {
115117 resolve ( errorObj ) ;
116118 }
117119 /* eslint-disable no-undef */
118- } ) ) ;
120+ } ) ;
119121 } ) ) . catch ( ( err ) => {
120122 let errorObj = { } ;
121123 errorObj . statusText = 'Not Found' ;
0 commit comments