Arreglar funciones de eliminar área común

This commit is contained in:
Mariela 2022-08-01 01:10:17 -06:00
parent 859c420067
commit 6e24540d00
2 changed files with 8 additions and 2 deletions

View File

@ -196,6 +196,12 @@ export class AppController {
return this.appService.findByCommunity(paramCommunityId);
}
@Delete('commonArea/deleteCommonArea/:id')
deleteCommonArea(@Param('id') id: string) {
return this.appService.deleteCommonArea(id);
}
// #==== API GUEST
//#API userService - create user
@Post('guest/createGuest')

View File

@ -259,8 +259,8 @@ export class AppService {
}
//GET parameter from API
removeCommonArea(paramCommonAreaId: string) {
//DELETE parameter from API
deleteCommonArea(paramCommonAreaId: string) {
const pattern = { cmd: 'removeCommonArea' };
const payload = { id: paramCommonAreaId };
return this.clientCommonAreaApp