Skip to content

Commit

Permalink
[imp]:audith on signin
Browse files Browse the repository at this point in the history
  • Loading branch information
argotte committed Jan 15, 2024
1 parent 29e3e07 commit 093facc
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/users/infrastructure/controllers/users.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,16 @@ export class UsersController {
@ApiTags('Users')
@Post('/auth/log-in')
async signin(@Body() body: CreateUserDto) {
const data = await this.signUserIn.execute(body.phone);

const service = new AudithApplicationServiceDecorator(
new LoggingApplicationServiceDecorator(
new SignUserIn(this.findByPhoneUserService),
new NestLogger(),
),
this.audithRepo,
this.jwtService.decode(body.token).id,
);
const data = await service.execute(body.phone);

if (!data.IsSuccess) {
return {
Expand Down

0 comments on commit 093facc

Please sign in to comment.