mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-25 23:18:44 -07:00
Fix live room and account updates
This commit is contained in:
@@ -47,7 +47,7 @@ public class PlayersController(PlayerService playerService, NotificationService
|
||||
if (!updated) return NotFound();
|
||||
|
||||
var player = await playerService.GetByIdAsync(CurrentPlayerId);
|
||||
await notificationService.NotifyAsync(CurrentPlayerId, Models.Notification.PushNotificationId.SubscriptionUpdateProfile, PlayerService.ToProfile(player!));
|
||||
await notificationService.AccountChanged(player!);
|
||||
return Ok(PlayerService.ToProfile(player!));
|
||||
}
|
||||
|
||||
@@ -63,6 +63,7 @@ public class PlayersController(PlayerService playerService, NotificationService
|
||||
await playerService.UpdateBioAsync(id, req.Bio);
|
||||
|
||||
var player = await playerService.GetByIdAsync(id);
|
||||
await notificationService.AccountChanged(player!);
|
||||
return Ok(PlayerService.ToProfile(player!));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user