agregar metodo de eliminación de comunicado en servicio de API

This commit is contained in:
Eduardo Quiros 2022-08-23 00:09:55 -06:00
parent 1fd25ee469
commit 630a633bfb
No known key found for this signature in database
GPG Key ID: B77F36C3F12720B4
1 changed files with 9 additions and 0 deletions

View File

@ -548,6 +548,15 @@ export class AppService {
.pipe(map((message: string) => ({ message }))); .pipe(map((message: string) => ({ message })));
} }
//DELETE
deletePost(paramPostId: string) {
const pattern = { cmd: 'removePost' };
const payload = { id: paramPostId };
return this.clientPostApp
.send<string>(pattern, payload)
.pipe(map((message: string) => ({ message })));
}
// ====================== COMMNENT POSTS =============================== // ====================== COMMNENT POSTS ===============================
//Comment parameter from API //Comment parameter from API