แก้ noti
This commit is contained in:
parent
31ac8f9299
commit
2fc1587d18
3 changed files with 14 additions and 8 deletions
|
|
@ -75,12 +75,12 @@ namespace BMA.EHR.Placement.Service.Controllers
|
|||
[HttpPost("keycloak")]
|
||||
public async Task<ActionResult<ResponseObject>> UpdatePropertyByUserKeycloak([FromBody] NotiRequest req)
|
||||
{
|
||||
var profile = await _context.Profiles.FirstOrDefaultAsync(x => x.KeycloakId == req.ReceiverUserId);
|
||||
if (profile == null)
|
||||
return Error(GlobalMessages.DataNotFound);
|
||||
// var profile = await _context.Profiles.FirstOrDefaultAsync(x => x.KeycloakId == req.ReceiverUserId);
|
||||
// if (profile == null)
|
||||
// return Error(GlobalMessages.DataNotFound);
|
||||
|
||||
await _repositoryNoti.PushNotificationAsync(
|
||||
profile.Id,
|
||||
req.ReceiverUserId,
|
||||
req.Subject,
|
||||
req.Body,
|
||||
req.Payload,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue