From 5fac64267513b8722511e6f7662cdcc6f608d7a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Iv=C3=A1n?= <80365304+Diego-lvan@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:35:26 -0600 Subject: [PATCH 01/14] removiendo decorador innecesario --- backend/src/auth/user/authUsercontroller.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/src/auth/user/authUsercontroller.ts b/backend/src/auth/user/authUsercontroller.ts index 8febe05f..2988adbd 100644 --- a/backend/src/auth/user/authUsercontroller.ts +++ b/backend/src/auth/user/authUsercontroller.ts @@ -14,7 +14,6 @@ export class AuthUserController { constructor(private readonly authUserService: AuthUserService) {} @ApiBody({ type: CreateUserDto }) - @ApiBearerAuth() @ApiCreatedResponse({ type: UserSigninResDto, }) -- GitLab From 0fa678815c460be0376b03916058d409cd9f02e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Iv=C3=A1n?= <80365304+Diego-lvan@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:35:55 -0600 Subject: [PATCH 02/14] haciendo place y user primary key en la entidad Visited --- backend/src/visited/entities/visited.entity.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/backend/src/visited/entities/visited.entity.ts b/backend/src/visited/entities/visited.entity.ts index 65a92aff..81de0fed 100644 --- a/backend/src/visited/entities/visited.entity.ts +++ b/backend/src/visited/entities/visited.entity.ts @@ -1,23 +1,22 @@ import { Place } from 'src/place/entities/place.entity'; import { User } from 'src/user/entities/user.entity'; -import { Column, Entity, JoinColumn, ManyToOne, PrimaryGeneratedColumn } from 'typeorm'; +import { Column, Entity, JoinColumn, ManyToOne, PrimaryColumn } from 'typeorm'; @Entity() export class Visited { - @PrimaryGeneratedColumn() - idVisited: number; - + @PrimaryColumn() @ManyToOne(() => Place, (place) => place.idPlace, { eager: true }) @JoinColumn({ name: 'place' }) place: Place; - @ManyToOne(() => User, (user) => user.userId) + @PrimaryColumn() + @ManyToOne(() => User, (user) => user.email) @JoinColumn({ name: 'user' }) user: User; @Column({ nullable: false }) rating: number; - @Column({ nullable: false }) + @Column({ nullable: true, default: () => 'CURRENT_TIMESTAMP' }) date: Date; } -- GitLab From 7bedf9eafd8db8f2885849c1d8da01a5db2e2b3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Iv=C3=A1n?= <80365304+Diego-lvan@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:36:23 -0600 Subject: [PATCH 03/14] removiendo fecha y email de CreateVisitedDto --- backend/src/visited/dto/create-visited.dto.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/backend/src/visited/dto/create-visited.dto.ts b/backend/src/visited/dto/create-visited.dto.ts index 60f86a2f..ce591bec 100644 --- a/backend/src/visited/dto/create-visited.dto.ts +++ b/backend/src/visited/dto/create-visited.dto.ts @@ -3,10 +3,6 @@ import { ApiProperty } from '@nestjs/swagger'; export class CreateVisitedDto { @ApiProperty() idPlace: number; - @ApiProperty() - email: string; @ApiProperty({ type: 'number', description: 'Rating from 1 to 5' }) rating: number; - @ApiProperty() - date: Date; } -- GitLab From 8c5984fe1fd1117bdef5d82bae61f494f4d64c1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Iv=C3=A1n?= <80365304+Diego-lvan@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:36:59 -0600 Subject: [PATCH 04/14] cambiando el primary key de un usuario de idUsuario a email --- backend/src/user/entities/user.entity.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/backend/src/user/entities/user.entity.ts b/backend/src/user/entities/user.entity.ts index 43698b21..6ee89b37 100644 --- a/backend/src/user/entities/user.entity.ts +++ b/backend/src/user/entities/user.entity.ts @@ -1,14 +1,9 @@ import { Category } from 'src/category/entities/category.entity'; -import { Entity, Column, PrimaryGeneratedColumn, ManyToMany, JoinTable } from 'typeorm'; +import { Entity, Column, ManyToMany, JoinTable, PrimaryColumn } from 'typeorm'; @Entity() export class User { - @PrimaryGeneratedColumn() - userId: number; - - @Column({ - unique: true, - }) + @PrimaryColumn() email: string; @JoinTable() -- GitLab From 43c5fcde2033ec00fc82cfd14f1fedc2c419b65c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Iv=C3=A1n?= <80365304+Diego-lvan@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:38:01 -0600 Subject: [PATCH 05/14] removiendo userId de UserSigninResDto --- backend/src/auth/user/dto/user-signin-res.dto.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/src/auth/user/dto/user-signin-res.dto.ts b/backend/src/auth/user/dto/user-signin-res.dto.ts index 632d3ee9..90cf4a05 100644 --- a/backend/src/auth/user/dto/user-signin-res.dto.ts +++ b/backend/src/auth/user/dto/user-signin-res.dto.ts @@ -2,8 +2,6 @@ import { ApiProperty } from '@nestjs/swagger'; import { ALL_ROLES } from 'src/shared/enum/admin-role.enum'; export class UserSigninResDto { - @ApiProperty() - userId: number; @ApiProperty() email: string; @ApiProperty() -- GitLab From 8f75379829845dee2f6fafbcf4c7158640ea1c53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Iv=C3=A1n?= <80365304+Diego-lvan@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:39:04 -0600 Subject: [PATCH 06/14] cambiando de save a upsert cuando se agrega un lugar visitado --- backend/src/visited/visited.service.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/backend/src/visited/visited.service.ts b/backend/src/visited/visited.service.ts index c4a4f686..722905b5 100644 --- a/backend/src/visited/visited.service.ts +++ b/backend/src/visited/visited.service.ts @@ -7,7 +7,6 @@ import { UserService } from 'src/user/user.service'; import { CreateVisitedDto } from './dto/create-visited.dto'; import { Place } from 'src/place/entities/place.entity'; import { PlaceService } from 'src/place/place.service'; -import { UpdateVisitedDto } from './dto/update-visited.dto'; @Injectable() export class VisitedService { @@ -17,11 +16,15 @@ export class VisitedService { private readonly placeService: PlaceService, ) {} - async create(createVisitedDto: CreateVisitedDto) { + async create(createVisitedDto: CreateVisitedDto, email: string) { const place: Place = await this.placeService.findOne(createVisitedDto.idPlace); - const user: User = await this.userService.findOne(createVisitedDto.email); + const user: User = await this.userService.findOne(email); if (!place || !user) throw new BadRequestException('Place or user not found'); - await this.visitedRepository.save({ place, user, rating: createVisitedDto.rating, date: createVisitedDto.date }); + + await this.visitedRepository.upsert( + { place, user, rating: createVisitedDto.rating }, + { conflictPaths: ['place', 'user'] }, + ); } async getVisitedByUser(email: string): Promise { -- GitLab From 1c5247883707f4177cccf7f16cc6b2381259365e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Iv=C3=A1n?= <80365304+Diego-lvan@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:39:25 -0600 Subject: [PATCH 07/14] agregando provedores a visited.module --- backend/src/visited/visited.module.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/backend/src/visited/visited.module.ts b/backend/src/visited/visited.module.ts index 022aaf56..9dacfd66 100644 --- a/backend/src/visited/visited.module.ts +++ b/backend/src/visited/visited.module.ts @@ -12,10 +12,21 @@ import { Category } from 'src/category/entities/category.entity'; import { AvailableDate } from 'src/place/entities/available-date.entity'; import { PlaceTraduction } from 'src/place/entities/place-traduction.entity'; import { Town } from 'src/town/entities/town.entity'; +import { AuthUserService } from 'src/auth/user/authUserservice'; +import { JwtService } from '@nestjs/jwt'; +import { EncryptionService } from 'src/auth/encryption/encryption.service'; @Module({ controllers: [VisitedController], - providers: [VisitedService, UserService, PlaceService, CategoryService], - imports: [TypeOrmModule.forFeature([User, Place, Visited, Category, AvailableDate, PlaceTraduction, Town])], + providers: [ + VisitedService, + UserService, + PlaceService, + CategoryService, + AuthUserService, + JwtService, + EncryptionService, + ], + imports: [TypeOrmModule.forFeature([User, Place, Visited, Category, AvailableDate, PlaceTraduction, Town, Visited])], }) export class VisitedModule {} -- GitLab From 25fcc9543f642de278765e433ba2fd47234e71bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Iv=C3=A1n?= <80365304+Diego-lvan@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:39:52 -0600 Subject: [PATCH 08/14] cambiando valores fijos a los pasador por el usuario --- .../src/travel-place/travel-place.service.ts | 33 +++++++++---------- 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/backend/src/travel-place/travel-place.service.ts b/backend/src/travel-place/travel-place.service.ts index 0e6867b9..99fbb5e5 100644 --- a/backend/src/travel-place/travel-place.service.ts +++ b/backend/src/travel-place/travel-place.service.ts @@ -1,9 +1,8 @@ import { Injectable } from '@nestjs/common'; import { CreateTravelPlaceDto } from './dto/create-travel-place.dto'; -import { UpdateTravelPlaceDto } from './dto/update-travel-place.dto'; import { InjectRepository } from '@nestjs/typeorm'; import { TravelPlace } from './entities/travel-place.entity'; -import { In, Repository } from 'typeorm'; +import { Repository } from 'typeorm'; import { Place } from 'src/place/entities/place.entity'; import { Route } from 'src/route/entities/route.entity'; @@ -21,25 +20,25 @@ export class TravelPlaceService { await this.travelPlaceRepository.save({ route, place, - startDate: new Date(), - endDate: new Date(), - done: true, + startDate: createTravelPlaceDto.startDate, + endDate: createTravelPlaceDto.endDate, + done: createTravelPlaceDto.done, }); } - findAll() { - return `This action returns all travelPlace`; - } + // findAll() { + // return `This action returns all travelPlace`; + // } - findOne(id: number) { - return `This action returns a #${id} travelPlace`; - } + // findOne(id: number) { + // return `This action returns a #${id} travelPlace`; + // } - update(id: number, updateTravelPlaceDto: UpdateTravelPlaceDto) { - return `This action updates a #${id} travelPlace`; - } + // update(id: number, updateTravelPlaceDto: UpdateTravelPlaceDto) { + // return `This action updates a #${id} travelPlace`; + // } - remove(id: number) { - return `This action removes a #${id} travelPlace`; - } + // remove(id: number) { + // return `This action removes a #${id} travelPlace`; + // } } -- GitLab From 5f4e87b1d5903ed6878642cc9dff6cca2da0a3de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Iv=C3=A1n?= <80365304+Diego-lvan@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:40:25 -0600 Subject: [PATCH 09/14] agregando la ruta recomendada a la bd --- backend/src/route/route.service.ts | 48 ++++++++---------------------- 1 file changed, 13 insertions(+), 35 deletions(-) diff --git a/backend/src/route/route.service.ts b/backend/src/route/route.service.ts index 5d359bfe..e624089e 100644 --- a/backend/src/route/route.service.ts +++ b/backend/src/route/route.service.ts @@ -1,13 +1,10 @@ import { Injectable } from '@nestjs/common'; -import { CreateRouteDto } from './dto/create-route.dto'; -import { UpdateRouteDto } from './dto/update-route.dto'; import { InjectDataSource, InjectRepository } from '@nestjs/typeorm'; import { Route } from './entities/route.entity'; -import { DataSource, In, Repository } from 'typeorm'; +import { DataSource, Repository } from 'typeorm'; import { User } from 'src/user/entities/user.entity'; import { Town } from 'src/town/entities/town.entity'; import { TravelPlaceService } from 'src/travel-place/travel-place.service'; -import { TravelPlace } from 'src/travel-place/entities/travel-place.entity'; import { RecommendationsSystem } from './utils/recommendations'; import { PlaceService } from 'src/place/place.service'; import { LANGUAGES } from 'src/shared/enum/languages.enum'; @@ -27,46 +24,25 @@ export class RouteService { private readonly placeService: PlaceService, private readonly visitedService: VisitedService, ) {} - private async createRoute(idUser: number, idTown: number) { - const user: User = await this.userRepository.findOneBy({ userId: idUser }); + private async createRoute(email: string, idTown: number, idPlace: number, startDate: Date, endDate: Date) { + const user: User = await this.userRepository.findOneBy({ email }); const town: Town = await this.townRepository.findOneBy({ townId: idTown }); - await this.routeRepository.save({ user, town, startDate: new Date(), endDate: new Date() }); + // const idRoute = await this.routeRepository.save({ user, town, startDate, endDate }); + const idRoute = (await this.routeRepository.save({ user, town, startDate, endDate })).idRoute; await this.travelPlaceService.create({ - idRoute: 1, - idPlace: 1, + idRoute, + idPlace, startDate: new Date(), endDate: new Date(), - done: true, + done: false, }); } - findAll() { - return `This action returns all route`; - } - - async findOne(id: number) { - const res: any[] = await this.dataSource - .getRepository(Route) - .createQueryBuilder('route') - .leftJoinAndSelect('route.travelPlace', 'travelPlace') - .getMany(); - - return res; - } - - update(id: number, updateRouteDto: UpdateRouteDto) { - return `This action updates a #${id} route`; - } - - remove(id: number) { - return `This action removes a #${id} route`; - } - async recommend(idTown: number, email: string, language: LANGUAGES) { // Obtener los visitados y los candidatos - const places: GetPlaceDto[] = await this.placeService.findAllByTown(idTown, language); + const placesNotVisited: GetPlaceDto[] = await this.placeService.findPlacesNotVisitedByUser(email, language, idTown); const visited: Visited[] = await this.visitedService.getVisitedByUser(email); - const placesMapped: RecommendPlace[] = places.map((place) => { + const placesMapped: RecommendPlace[] = placesNotVisited.map((place) => { return { idPlace: place.idPlace, openAt: place.openAt, @@ -93,6 +69,8 @@ export class RouteService { placesChooen.push(await this.placeService.findOneAndTradAndAvailable(index, LANGUAGES.EN)); } - return placesChooen; + for (const place of placesChooen) { + await this.createRoute(email, idTown, place.idPlace, new Date(), new Date()); + } } } -- GitLab From d472be00d8a9132396ccd95b43d52bc55720bf84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Iv=C3=A1n?= <80365304+Diego-lvan@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:40:46 -0600 Subject: [PATCH 10/14] agregando metodo findPlacesNotVisitedByUser --- backend/src/place/place.service.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/backend/src/place/place.service.ts b/backend/src/place/place.service.ts index 784232d0..6f258c3c 100644 --- a/backend/src/place/place.service.ts +++ b/backend/src/place/place.service.ts @@ -14,6 +14,7 @@ import { ServerConstants } from 'src/constants/server.contants'; import { Available } from 'src/pointOfInterest/enum/available.enum'; import { UpdatePlaceReqDto } from './dto/update-place.req.dto'; import { Category } from 'src/category/entities/category.entity'; +import { Visited } from 'src/visited/entities/visited.entity'; @Injectable() export class PlaceService { @@ -206,4 +207,17 @@ export class PlaceService { ); } } + + async findPlacesNotVisitedByUser(email: string, lang: LANGUAGES, idTown: number): Promise { + const places: GetPlaceDto[] = await this.findAllByTown(idTown, lang); + const visited: any[] = await this.dataSource + .getRepository(Visited) + .createQueryBuilder('visited') + .leftJoinAndSelect('visited.place', 'place') + .where('visited.user = :email', { email }) + .getMany(); + const visitedIds: number[] = visited.map((visit) => visit.place.idPlace); + // podemos hacerlo en la query + return places.filter((place) => !visitedIds.includes(place.idPlace)); + } } -- GitLab From bdef76ef2d3c8184ac0660b24a7f5c4305400433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Iv=C3=A1n?= <80365304+Diego-lvan@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:41:32 -0600 Subject: [PATCH 11/14] agregando autenticacion en controlador visited --- backend/src/visited/visited.controller.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/backend/src/visited/visited.controller.ts b/backend/src/visited/visited.controller.ts index ea96456f..039d63df 100644 --- a/backend/src/visited/visited.controller.ts +++ b/backend/src/visited/visited.controller.ts @@ -1,7 +1,9 @@ -import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common'; +import { Controller, Get, Post, Body, Param, Delete, UseGuards, Req } from '@nestjs/common'; import { VisitedService } from './visited.service'; import { CreateVisitedDto } from './dto/create-visited.dto'; -import { ApiTags } from '@nestjs/swagger'; +import { ApiBearerAuth, ApiTags } from '@nestjs/swagger'; +import { AuthUserGuard } from 'src/auth/user/authUser.guard'; +import { CustomUserRequest } from 'src/auth/user/interface/customUserReq'; // import { UpdateVisitedDto } from './dto/update-visited.dto'; @Controller('visited') @@ -9,10 +11,13 @@ import { ApiTags } from '@nestjs/swagger'; export class VisitedController { constructor(private readonly visitedService: VisitedService) {} + @ApiBearerAuth('jwt') + @UseGuards(AuthUserGuard) @Post() - async create(@Body() createVisitedDto: CreateVisitedDto) { + async create(@Body() createVisitedDto: CreateVisitedDto, @Req() req: CustomUserRequest) { try { - return await this.visitedService.create(createVisitedDto); + const { email } = req.user; + return await this.visitedService.create(createVisitedDto, email); } catch (e) { return e; } @@ -28,11 +33,6 @@ export class VisitedController { return this.visitedService.findOne(+id); } - // @Patch(':id') - // update(@Param('id') id: string, @Body() updateVisitedDto: UpdateVisitedDto) { - // return this.visitedService.update(+id, updateVisitedDto); - // } - @Delete(':id') remove(@Param('id') id: string) { return this.visitedService.remove(+id); -- GitLab From cee7bfde9ea4f199ab76569de68438804d14f28f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Iv=C3=A1n?= <80365304+Diego-lvan@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:42:04 -0600 Subject: [PATCH 12/14] eliminando codigo autogenerado --- .../travel-place/travel-place.controller.ts | 23 +------------------ 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/backend/src/travel-place/travel-place.controller.ts b/backend/src/travel-place/travel-place.controller.ts index 01d13a96..ddace02e 100644 --- a/backend/src/travel-place/travel-place.controller.ts +++ b/backend/src/travel-place/travel-place.controller.ts @@ -1,7 +1,6 @@ -import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common'; +import { Controller, Post, Body } from '@nestjs/common'; import { TravelPlaceService } from './travel-place.service'; import { CreateTravelPlaceDto } from './dto/create-travel-place.dto'; -import { UpdateTravelPlaceDto } from './dto/update-travel-place.dto'; @Controller('travel-place') export class TravelPlaceController { @@ -11,24 +10,4 @@ export class TravelPlaceController { create(@Body() createTravelPlaceDto: CreateTravelPlaceDto) { return this.travelPlaceService.create(createTravelPlaceDto); } - - @Get() - findAll() { - return this.travelPlaceService.findAll(); - } - - @Get(':id') - findOne(@Param('id') id: string) { - return this.travelPlaceService.findOne(+id); - } - - @Patch(':id') - update(@Param('id') id: string, @Body() updateTravelPlaceDto: UpdateTravelPlaceDto) { - return this.travelPlaceService.update(+id, updateTravelPlaceDto); - } - - @Delete(':id') - remove(@Param('id') id: string) { - return this.travelPlaceService.remove(+id); - } } -- GitLab From 22eca8dffec059da69f1dff6d99123fc66ca5641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Iv=C3=A1n?= <80365304+Diego-lvan@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:42:28 -0600 Subject: [PATCH 13/14] eliminando codigo autogenerado --- backend/src/route/route.controller.ts | 28 ++------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/backend/src/route/route.controller.ts b/backend/src/route/route.controller.ts index b3162fc3..bdd21275 100644 --- a/backend/src/route/route.controller.ts +++ b/backend/src/route/route.controller.ts @@ -1,8 +1,6 @@ -import { Controller, Get, Post, Body, Patch, Param, Delete, UseGuards, Req, Query } from '@nestjs/common'; +import { Controller, Get, Param, UseGuards, Req, Query } from '@nestjs/common'; import { RouteService } from './route.service'; -import { CreateRouteDto } from './dto/create-route.dto'; -import { UpdateRouteDto } from './dto/update-route.dto'; -import { ApiBearerAuth, ApiConsumes, ApiParam, ApiQuery, ApiTags } from '@nestjs/swagger'; +import { ApiBearerAuth, ApiParam, ApiQuery, ApiTags } from '@nestjs/swagger'; import { LANGUAGES } from 'src/shared/enum/languages.enum'; import { AuthUserGuard } from 'src/auth/user/authUser.guard'; import { CustomUserRequest } from 'src/auth/user/interface/customUserReq'; @@ -12,28 +10,6 @@ import { CustomUserRequest } from 'src/auth/user/interface/customUserReq'; export class RouteController { constructor(private readonly routeService: RouteService) {} - // @Post() - // @ApiConsumes('multipart/form-data') - // // @UseGuards(AuthUserGuard) - // async create(@Body() createRouteDto: CreateRouteDto) { - // return await this.routeService.recommend(); - // } - - // @Get(':idRoute') - // async findOne(@Param('idRoute') idRoute: number) { - // return await this.routeService.findOne(idRoute); - // } - - // @Patch(':id') - // update(@Param('id') id: string, @Body() updateRouteDto: UpdateRouteDto) { - // return this.routeService.update(+id, updateRouteDto); - // } - - // @Delete(':id') - // remove(@Param('id') id: string) { - // return this.routeService.remove(+id); - // } - @Get('recommend:idTown') @ApiQuery({ name: 'lang', type: String }) @ApiParam({ name: 'idTown', type: Number }) -- GitLab From c4d6d9bc5d3ea0aaa8ae68763d795b9a99209fe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20Iv=C3=A1n?= <80365304+Diego-lvan@users.noreply.github.com> Date: Wed, 4 Sep 2024 14:42:52 -0600 Subject: [PATCH 14/14] eliminando userId al loggear --- backend/src/auth/user/authUserservice.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/src/auth/user/authUserservice.ts b/backend/src/auth/user/authUserservice.ts index b3b5db3b..88f3b6f3 100644 --- a/backend/src/auth/user/authUserservice.ts +++ b/backend/src/auth/user/authUserservice.ts @@ -47,7 +47,6 @@ export class AuthUserService { { secret: JwtConstants.SECRET }, ); const userSigninResDto: UserSigninResDto = { - userId: user.userId, email: user.email, name: user.name, lastName: user.lastName, -- GitLab