File tree Expand file tree Collapse file tree
test/simulate/mocks-spies
workers/loc.api/queue/send-mail Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,8 +9,9 @@ function addFunctions (ExtApi) {
99 to,
1010 reportUrl,
1111 fileName
12- } = msg
12+ } = msg ?. payload
1313
14+ if ( ! msg ?. type ) return cb ( new Error ( 'ERR_API_NO_TYPE' ) )
1415 if ( ! lang ) return cb ( new Error ( 'ERR_API_NO_LANGUAGE' ) )
1516 if ( ! to ) return cb ( new Error ( 'ERR_API_NO_TO' ) )
1617 if ( ! reportUrl ) return cb ( new Error ( 'ERR_API_NO_REPORT_URL' ) )
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ module.exports = (grcBfxReq) => {
1414 signatureS3
1515 } = data ?? { }
1616
17- const mailOptions = {
17+ const payload = {
1818 lang : language ?? 'en' ,
1919 to,
2020 reportUrl,
@@ -26,7 +26,7 @@ module.exports = (grcBfxReq) => {
2626 return grcBfxReq ( {
2727 service : 'rest:core:mail' ,
2828 action : 'enqueueEmail' ,
29- args : [ mailOptions ]
29+ args : [ { type : 'reportDownloadReady' , payload } ]
3030 } )
3131 } )
3232
You can’t perform that action at this time.
0 commit comments