This repository was archived by the owner on Apr 3, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ function createServer(db) {
107107 api . get ( '/securityEvents/:id/ip/:ipAddr' , withParams ( db . securityEvents ) )
108108 api . post ( '/securityEvents' , withBodyAndQuery ( db . createSecurityEvent ) )
109109
110- api . get ( '/emailBounces/:email ' , op ( req => db . fetchEmailBounces ( req . params . email ) ) )
110+ api . get ( '/emailBounces/:id ' , withIdAndBody ( db . fetchEmailBounces ) )
111111 api . post ( '/emailBounces' , withBodyAndQuery ( db . createEmailBounce ) )
112112
113113 api . get ( '/emailRecord/:id' , withIdAndBody ( db . emailRecord ) )
Original file line number Diff line number Diff line change @@ -1142,7 +1142,7 @@ module.exports = function(cfg, server) {
11421142 . then (
11431143 function ( r ) {
11441144 respOkEmpty ( t , r )
1145- return client . getThen ( '/emailBounces/' + email )
1145+ return client . getThen ( '/emailBounces/' + Buffer ( email ) . toString ( 'hex' ) )
11461146 }
11471147 )
11481148 . then (
Original file line number Diff line number Diff line change @@ -1104,8 +1104,8 @@ module.exports = function (log, error) {
11041104 }
11051105
11061106 const FETCH_EMAIL_BOUNCES = 'CALL fetchEmailBounces_1(?)'
1107- MySql . prototype . fetchEmailBounces = function ( email ) {
1108- return this . read ( FETCH_EMAIL_BOUNCES , [ email ] )
1107+ MySql . prototype . fetchEmailBounces = function ( emailBuffer ) {
1108+ return this . read ( FETCH_EMAIL_BOUNCES , [ emailBuffer . toString ( 'utf8' ) ] )
11091109 . then ( result => result [ 0 ] )
11101110 }
11111111
You can’t perform that action at this time.
0 commit comments