File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ export class AppService {
126126 dec += decipher . final ( 'utf8' ) ;
127127 const upload = multer ( {
128128 storage : multers3 ( {
129- s3 : new S3Client ( { region : 'us-east-2' } ) ,
129+ s3 : new S3Client ( { region : 'us-east-2' } ) ,
130130 bucket : 'revolutionuc-resumes-2023' ,
131131 key : function ( _req , file , cb ) {
132132 const fileArray = file . originalname . split ( '.' ) ;
@@ -141,7 +141,10 @@ export class AppService {
141141 console . log ( err ) ;
142142 throw new HttpException ( 'There was an error uploading the resume' , 500 ) ;
143143 } else {
144- return res . header ( "Access-Control-Allow-Origin" , "*" ) . status ( HttpStatus . CREATED ) . send ( ) ;
144+ return res
145+ . header ( 'Access-Control-Allow-Origin' , '*' )
146+ . status ( HttpStatus . CREATED )
147+ . send ( ) ;
145148 }
146149 } ) ;
147150 }
Original file line number Diff line number Diff line change @@ -225,9 +225,7 @@ export class EmailService {
225225 const emailData = { ...this . emailData [ payload . template ] } ;
226226
227227 if ( payload . recipent === 'all' ) {
228- const registrants = await this . registrantRepository . findBy ( {
229- emailVerfied : true ,
230- } ) ;
228+ const registrants = await this . registrantRepository . find ( ) ;
231229
232230 Logger . log ( `Sending ${ payload . template } to ${ registrants . length } ` ) ;
233231
You can’t perform that action at this time.
0 commit comments