mirror of
https://github.com/CannedNet/CannedNet.git
synced 2026-10-26 23:48:58 -07:00
this is a big one so check the commit description
- auto fill storefront db from json files - creating an account now automatically creates a doomroom room for that player - consumables - gift boxes - earnable rewards from games (tokens dont work, but rro specific items do) - purchasing items works - some notification work, doesnt fully work iirc
This commit is contained in:
@@ -6,10 +6,11 @@ namespace CannedNet.Hubs;
|
||||
|
||||
public class NotificationsHub : Hub
|
||||
{
|
||||
private static NotificationService _notificationService = new();
|
||||
private readonly NotificationService _notificationService;
|
||||
|
||||
public NotificationsHub()
|
||||
public NotificationsHub(NotificationService notificationService)
|
||||
{
|
||||
_notificationService = notificationService;
|
||||
}
|
||||
|
||||
public override async Task OnConnectedAsync()
|
||||
@@ -35,7 +36,7 @@ public class NotificationsHub : Hub
|
||||
return Task.FromResult(_notificationService.GetSubscribedPlayers(Context.ConnectionId).ToHashSet());
|
||||
}
|
||||
|
||||
public static NotificationService GetNotificationService()
|
||||
public NotificationService GetNotificationService()
|
||||
{
|
||||
return _notificationService;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user