mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-12 20:57:22 +01:00
move markuseroffline to before send offline message and db operations
This commit is contained in:
parent
7231589098
commit
c358b6b3c4
1 changed files with 1 additions and 1 deletions
|
|
@ -139,12 +139,12 @@ public partial class MareHub : Hub<IMareHub>, IMareHub
|
|||
_mareMetrics.DecGauge(MetricsAPI.GaugeAuthorizedConnections);
|
||||
|
||||
_logger.LogCallInfo();
|
||||
_clientIdentService.MarkUserOffline(AuthenticatedUserId);
|
||||
|
||||
await SendOfflineToAllPairedUsers(userCharaIdent).ConfigureAwait(false);
|
||||
|
||||
_dbContext.RemoveRange(_dbContext.Files.Where(f => !f.Uploaded && f.UploaderUID == AuthenticatedUserId));
|
||||
|
||||
_clientIdentService.MarkUserOffline(AuthenticatedUserId);
|
||||
await _dbContext.SaveChangesAsync().ConfigureAwait(false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue