Skip to content

Commit d94f04f

Browse files
committed
chore: Comment out console.log statements
1 parent 8992ea9 commit d94f04f

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/_common/pipes/dto-validation.pipe.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class DtoValidationPipe extends ValidationPipe {
4343
return error;
4444
});
4545
}
46-
console.log('validations', JSON.stringify(request.body));
46+
// console.log('validations', JSON.stringify(request.body));
4747
return new BadRequestException({
4848
statusCode: HttpStatus.BAD_REQUEST,
4949
message,

src/app.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class AppController extends AbstractController {
4545
@Query('current') current?: string,
4646
): Promise<Response> {
4747
let data: GithubUpdate[] | object = {}
48-
console.log('this.storage', storage.get(project))
48+
// console.log('this.storage', storage.get(project))
4949
if (storage.has(project)) {
5050
this.logger.log(`Fetching ${project} tags from cache`)
5151
data = storage.get(project) as GithubUpdate[] | object
@@ -54,7 +54,7 @@ export class AppController extends AbstractController {
5454
const update = await fetch(`https://api.github.com/repos/Libertech-FR/${project}/tags`)
5555
data = await update.json()
5656
storage.set(project, data)
57-
console.log('this.storage', storage.get(project))
57+
// console.log('this.storage', storage.get(project))
5858
}
5959
if (!Array.isArray(data)) {
6060
throw new BadRequestException(`Invalid data from Github <${JSON.stringify(data)}>`)

src/core/auth/_strategies/local.strategy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class LocalStrategy extends PassportStrategy(Strategy) {
2424
): Promise<void> {
2525
Logger.debug(`Try to authenticate user : ${username}`, 'LocalStrategy');
2626
const user = await this.auth.authenticateWithLocal(username, password);
27-
console.log(user);
27+
// console.log(user);
2828
if (!user) done(new UnauthorizedException(), false);
2929
// if (user.state.current !== IdentityState.ACTIVE) done(new ForbiddenException(), false)
3030
done(null, omit(user.toObject(), ExcludeAgentType) as AgentType);

src/core/auth/auth.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export class AuthService extends AbstractService implements OnModuleInit {
7070
public async authenticateWithLocal(username: string, password: string): Promise<Agents | null> {
7171
try {
7272
const user = await this.agentsService.findOne<Agents>({ username });
73-
console.log(user);
73+
// console.log(user);
7474
if (user && (await argon2Verify(user.password, password))) {
7575
return user;
7676
}

src/core/jobs/jobs.controller.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class JobsController extends AbstractController {
3636
@SearchFilterSchema({ unsafe: true }) searchFilterSchema: FilterSchema,
3737
@SearchFilterOptions() searchFilterOptions: FilterOptions,
3838
): Promise<Response> {
39-
console.log('req', req.query)
39+
// console.log('req', req.query)
4040

4141
//TODO: search tree by parentId
4242
const [data, total] = await this._service.findAndCount(

src/management/identities/identities.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ export class IdentitiesService extends AbstractServiceSchema {
272272
if (error instanceof ValidationSchemaException) {
273273
this.logger.warn(`${logPrefix} Validation schema error. ${JSON.stringify(error.getValidations())}`);
274274
identity.additionalFields.validations = error.getValidations() as any;
275-
console.log('identity.state', identity.state)
275+
// console.log('identity.state', identity.state)
276276
if (identity.state === IdentityState.TO_CREATE) {
277277
this.logger.warn(`${logPrefix} State set to TO_COMPLETE.`);
278278
identity.state = IdentityState.TO_COMPLETE;

0 commit comments

Comments
 (0)