mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-31 03:43:38 +01:00
update blabla
This commit is contained in:
parent
641ad52313
commit
8939585c3c
7 changed files with 80 additions and 35 deletions
|
|
@ -26,6 +26,7 @@ namespace MareSynchronosServer.Hubs
|
|||
string userid = AuthenticatedUserId;
|
||||
var userEntry = await _dbContext.Users.SingleAsync(u => u.UID == userid);
|
||||
var ownPairData = await _dbContext.ClientPairs.Where(u => u.User.UID == userid).ToListAsync();
|
||||
var auth = await _dbContext.Auth.SingleAsync(u => u.UserUID == userid);
|
||||
|
||||
MareMetrics.Pairs.Dec(ownPairData.Count);
|
||||
MareMetrics.PairsPaused.Dec(ownPairData.Count(c => c.IsPaused));
|
||||
|
|
@ -50,6 +51,7 @@ namespace MareSynchronosServer.Hubs
|
|||
|
||||
_dbContext.RemoveRange(otherPairData);
|
||||
_dbContext.Remove(userEntry);
|
||||
_dbContext.Remove(auth);
|
||||
await _dbContext.SaveChangesAsync();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue