File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -871,7 +871,7 @@ export class UserInterface implements ui_constants.UiApi {
871871 "d1wtwocg4wx1ih.cloudfront.net"
872872 ]
873873
874- public postToCloudfrontSite = ( payload :any , cloudfrontPath :string ,
874+ public postToCloudfrontSite = ( payload :Object , cloudfrontPath :string ,
875875 maxAttempts ?:number )
876876 : Promise < void > => {
877877 console . log ( 'postToCloudfrontSite: ' , payload , cloudfrontPath ) ;
@@ -906,18 +906,14 @@ export class UserInterface implements ui_constants.UiApi {
906906 logsPromise = Promise . resolve ( '' ) ;
907907 }
908908 return logsPromise . then ( ( logs ) => {
909- var payload : uproxy_core_api . UserFeedback = {
909+ var payload = {
910910 email : feedback . email ,
911911 feedback : feedback . feedback ,
912912 logs : logs ,
913- feedbackType : feedback . feedbackType
913+ feedbackType : uproxy_core_api . UserFeedbackType [ feedback . feedbackType ] ,
914+ proxyingId : this . proxyingId
914915 } ;
915916
916- if ( payload . feedbackType ===
917- uproxy_core_api . UserFeedbackType . PROXYING_FAILURE ) {
918- payload . proxyingId = this . proxyingId ;
919- }
920-
921917 return this . postToCloudfrontSite ( payload , 'submit-feedback' ) ;
922918 } ) ;
923919 }
You can’t perform that action at this time.
0 commit comments