mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-13 12:14:20 +01:00
hotfix for connectiondto
This commit is contained in:
parent
f307c9c486
commit
0b458c0f87
2 changed files with 4 additions and 2 deletions
|
|
@ -41,7 +41,10 @@ namespace MareSynchronosServer.Hubs
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return new ConnectionDto();
|
return new ConnectionDto()
|
||||||
|
{
|
||||||
|
ServerVersion = API.Version
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
[HubMethodName(ConnectionHubAPI.InvokeGetSystemInfo)]
|
[HubMethodName(ConnectionHubAPI.InvokeGetSystemInfo)]
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,6 @@ namespace MareSynchronosServer.Hubs
|
||||||
{
|
{
|
||||||
Logger.LogInformation("User " + AuthenticatedUserId + " deleted all their files");
|
Logger.LogInformation("User " + AuthenticatedUserId + " deleted all their files");
|
||||||
|
|
||||||
await DbContext.SaveChangesAsync();
|
|
||||||
var ownFiles = await DbContext.Files.Where(f => f.Uploaded && f.Uploader.UID == AuthenticatedUserId).ToListAsync();
|
var ownFiles = await DbContext.Files.Where(f => f.Uploaded && f.Uploader.UID == AuthenticatedUserId).ToListAsync();
|
||||||
foreach (var file in ownFiles)
|
foreach (var file in ownFiles)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue