date format solve

This commit is contained in:
Eudes Inácio
2023-08-14 10:34:15 +01:00
26 changed files with 274 additions and 139 deletions
+16
View File
@@ -222,6 +222,22 @@ export class NotificationsService {
}
}
sendNotificationWithSend(userID, title, bodymsg, roomId) {
const geturl = environment.apiURL + `notifications/send`;
const headers = { 'Authorization': SessionStore.user.BasicAuthKey };
const message = {
"Service": "chat",
"IdObject": roomId
}
let id = 437
this.http.post<Tokenn>(geturl + `?userId=${userID}&title=${title}&body=${bodymsg}`, message, { headers }).subscribe(data => {
this.active = true
}, (error) => {
})
}
ChatSendMessageNotification(userID, title, bodymsg, roomId) {