hotfix for connectiondto

This commit is contained in:
Stanley Dimant
2022-07-07 23:27:18 +02:00
parent f307c9c486
commit 0b458c0f87
2 changed files with 4 additions and 2 deletions

View File

@@ -41,7 +41,10 @@ namespace MareSynchronosServer.Hubs
};
}
return new ConnectionDto();
return new ConnectionDto()
{
ServerVersion = API.Version
};
}
[HubMethodName(ConnectionHubAPI.InvokeGetSystemInfo)]

View File

@@ -47,7 +47,6 @@ namespace MareSynchronosServer.Hubs
{
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();
foreach (var file in ownFiles)
{