mirror of
https://github.com/bitwarden/server.git
synced 2025-06-30 07:36:14 -05:00
ArgumentNullException: Value cannot be null in POST /push/register (#5472)
This commit is contained in:
@ -43,8 +43,9 @@ public class PushController : Controller
|
||||
public async Task RegisterAsync([FromBody] PushRegistrationRequestModel model)
|
||||
{
|
||||
CheckUsage();
|
||||
await _pushRegistrationService.CreateOrUpdateRegistrationAsync(new PushRegistrationData(model.PushToken), Prefix(model.DeviceId),
|
||||
Prefix(model.UserId), Prefix(model.Identifier), model.Type, model.OrganizationIds.Select(Prefix), model.InstallationId);
|
||||
await _pushRegistrationService.CreateOrUpdateRegistrationAsync(new PushRegistrationData(model.PushToken),
|
||||
Prefix(model.DeviceId), Prefix(model.UserId), Prefix(model.Identifier), model.Type,
|
||||
model.OrganizationIds?.Select(Prefix) ?? [], model.InstallationId);
|
||||
}
|
||||
|
||||
[HttpPost("delete")]
|
||||
|
Reference in New Issue
Block a user