From 9e04a6e1c5786d5eff4ba49a12991f317c353a28 Mon Sep 17 00:00:00 2001 From: Mariela Date: Fri, 22 Jul 2022 00:22:09 -0600 Subject: [PATCH 1/2] delete function test send mail del service del api gateway --- api-gateway/src/app.controller.ts | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/api-gateway/src/app.controller.ts b/api-gateway/src/app.controller.ts index 3a559841..7b819bd6 100644 --- a/api-gateway/src/app.controller.ts +++ b/api-gateway/src/app.controller.ts @@ -343,20 +343,5 @@ export class AppController { return this.appService.html(email, name); } - // #==== API Users - @Post('user/testSendMail') - testSendMail( - @Body('dni') dni: string, - @Body('name') name: string, - @Body('last_name') last_name: string, - @Body('email') email: string, - @Body('phone') phone: number, - @Body('password') password: string, - @Body('user_type') user_type: string, - @Body('status') status: string, - @Body('date_entry') date_entry: Date, - ) { - return this.appService.testSendMail(dni, name, last_name, email, phone, password, - user_type, status, date_entry); - } + } \ No newline at end of file From e2c3bd51c2739f7f728edd978ae694d7cb66a49b Mon Sep 17 00:00:00 2001 From: Mariela Date: Fri, 22 Jul 2022 00:38:34 -0600 Subject: [PATCH 2/2] fix function duplicate usuario service --- servicio-usuarios/src/users/users.service.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/servicio-usuarios/src/users/users.service.ts b/servicio-usuarios/src/users/users.service.ts index 18b219cb..ea9aab88 100644 --- a/servicio-usuarios/src/users/users.service.ts +++ b/servicio-usuarios/src/users/users.service.ts @@ -82,10 +82,6 @@ export class UsersService { async findGuardsCommunity(pcommunity_id: string): Promise { return this.userModel.find({ user_type: 4 }).exec(); } - //find admin de comunidad - async allUsersAdminComunidad(): Promise { - return this.userModel.find({ user_type: 2 }).exec(); - } //find admin de comunidad async allUsersAdminComunidad(): Promise {