Skip to content

Commit d13ef7e

Browse files
committed
Send email to All should also send unverified people
1 parent 12a2171 commit d13ef7e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/app.service.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

src/email/email.service.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)