Skip to content
Snippets Groups Projects
Commit eb8b2433 authored by Hugo SUBTIL's avatar Hugo SUBTIL
Browse files

fix: configuration logs and bug fix for user registration

parent e7070d13
No related branches found
No related tags found
2 merge requests!27Recette,!26Dev
......@@ -8,13 +8,13 @@ export class ConfigurationService {
constructor() {
// Initializing conf with values from var env
if (process.env.NODE_ENV === 'production') {
if (process.env.NODE_ENV && process.env.NODE_ENV === 'production') {
this._config = configProd;
Logger.log('App started with production conf', 'ConfigurationService');
} else if (process.env.NODE_ENV === 'dev') {
} else if (process.env.NODE_ENV && process.env.NODE_ENV === 'dev') {
this._config = configDev;
Logger.log('App started with dev conf', 'ConfigurationService');
} else {
} else if (process.env.NODE_ENV) {
this._config = config;
Logger.log('App started with local conf', 'ConfigurationService');
}
......
......@@ -237,7 +237,7 @@ export class StructuresService {
structure.gender = '';
return structure;
}
@Cron(CronExpression.EVERY_DAY_AT_4AM)
public async checkOutdatedStructuresInfo(): Promise<void> {
const OUTDATED_MONT_TO_CHECK = 6;
......
......@@ -37,7 +37,6 @@ export class UsersService {
// Send verification email
createUser = await this.verifyUserMail(createUser);
createUser.save();
this.sendAdminStructureValidationMail();
return await this.findOne(createUserDto.email);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment