Skip to content

Commit 97fae4a

Browse files
committed
Remove unused transporter configuration and simplify identity query in PasswdService
1 parent 1bd62c2 commit 97fae4a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/management/passwd/passwd.service.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,10 @@ export class PasswdService extends AbstractService {
8282
this.logger.log('Reset password asked by mail for : ' + initDto.uid);
8383
const smtpParams = await this.mailadmService.getParams();
8484
if (mailAttribute !== '') {
85+
// this.mailer.addTransporter('lastStmp', smtpParams.host)
8586
this.mailer
8687
.sendMail({
88+
// transporterName: 'lastStmp',
8789
from: smtpParams.sender,
8890
to: mail,
8991
subject: 'Reinitialisation de votre mot de passe',
@@ -414,7 +416,7 @@ export class PasswdService extends AbstractService {
414416

415417
//Envoi le message d init à plusieurs identités
416418
public async initMany(ids: InitManyDto): Promise<any> {
417-
const identities = await this.identities.find({ _id: { $in: ids.ids }, state: IdentityState.SYNCED });
419+
const identities = await this.identities.find({ _id: { $in: ids.ids } });
418420
if (identities.length === 0) {
419421
throw new HttpException('Aucune identité trouvée.', 404);
420422
}

0 commit comments

Comments
 (0)