post notification edit

This commit is contained in:
Eudes Inácio
2023-01-30 18:01:29 +01:00
12 changed files with 28 additions and 39 deletions
+5 -4
View File
@@ -176,16 +176,17 @@ export class NotificationsService {
const headers = { 'Authorization': SessionStore.user.BasicAuthKey };
const body = {
UserId: 437,
title: "Teste",
body: "Test",
UserId: userID,
title: title,
body: bodymsg,
data: {
Service: "chat",
IdObject: roomId
}
};
let id = 437
this.http.post<Tokenn>(geturl+`?userId=${id}&title=${title}&body=${bodymsg}`, body, { headers }).subscribe(data => {
console.log(userID,title,bodymsg,roomId)
this.http.post<Tokenn>(geturl+`?userId=${userID}&title=${title}&body=${bodymsg}`, body, { headers }).subscribe(data => {
this.active = true
console.log(data)
}, (error) => {