Skip to content

Commit

Permalink
rename SyncSecurityTasksCreated to SyncNotification
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-livefront committed Jan 29, 2025
1 parent cadd8d4 commit 9ac2bc6
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Core/Enums/PushType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ public enum PushType : byte
SyncOrganizationStatusChanged = 18,
SyncOrganizationCollectionSettingChanged = 19,

SyncSecurityTasksCreated = 20,
SyncNotification = 20,
}
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public async Task PushAuthRequestResponseAsync(AuthRequest authRequest)

public async Task PushSyncSecurityTaskCreateAsync(Guid userId)
{
await PushUserAsync(userId, PushType.SyncSecurityTasksCreated);
await PushUserAsync(userId, PushType.SyncNotification);
}

private async Task PushAuthRequestAsync(AuthRequest authRequest, PushType type)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public async Task PushSyncSendDeleteAsync(Send send)

public async Task PushSyncSecurityTaskCreateAsync(Guid userId)
{
await PushUserAsync(userId, PushType.SyncSecurityTasksCreated);
await PushUserAsync(userId, PushType.SyncNotification);
}

private async Task PushSendAsync(Send send, PushType type)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,6 @@ await SendMessageAsync(PushType.SyncOrganizationCollectionSettingChanged,

public async Task PushSyncSecurityTaskCreateAsync(Guid userId)
{
await PushUserAsync(userId, PushType.SyncSecurityTasksCreated);
await PushUserAsync(userId, PushType.SyncNotification);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,6 @@ await SendPayloadToOrganizationAsync(

public async Task PushSyncSecurityTaskCreateAsync(Guid userId)
{
await PushUserAsync(userId, PushType.SyncSecurityTasksCreated);
await PushUserAsync(userId, PushType.SyncNotification);
}
}
2 changes: 1 addition & 1 deletion src/Notifications/HubHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ await hubContext.Clients.Group($"Organization_{orgStatusNotification.Payload.Org
await hubContext.Clients.Group($"Organization_{organizationCollectionSettingsChangedNotification.Payload.OrganizationId}")
.SendAsync("ReceiveMessage", organizationCollectionSettingsChangedNotification, cancellationToken);
break;
case PushType.SyncSecurityTasksCreated:
case PushType.SyncNotification:
var securityTaskNotification =
JsonSerializer.Deserialize<PushNotificationData<UserPushNotification>>(
notificationJson, _deserializerOptions);
Expand Down

0 comments on commit 9ac2bc6

Please sign in to comment.