From 0b458c0f8779715fbefeb12a1b3590dae4e06d84 Mon Sep 17 00:00:00 2001 From: Stanley Dimant Date: Thu, 7 Jul 2022 23:27:18 +0200 Subject: [PATCH] hotfix for connectiondto --- .../MareSynchronosServer/Hubs/ConnectionHub.cs | 5 ++++- MareSynchronosServer/MareSynchronosServer/Hubs/FilesHub.cs | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/MareSynchronosServer/MareSynchronosServer/Hubs/ConnectionHub.cs b/MareSynchronosServer/MareSynchronosServer/Hubs/ConnectionHub.cs index 5ee7e908..69b9e108 100644 --- a/MareSynchronosServer/MareSynchronosServer/Hubs/ConnectionHub.cs +++ b/MareSynchronosServer/MareSynchronosServer/Hubs/ConnectionHub.cs @@ -41,7 +41,10 @@ public async Task Heartbeat() }; } - return new ConnectionDto(); + return new ConnectionDto() + { + ServerVersion = API.Version + }; } [HubMethodName(ConnectionHubAPI.InvokeGetSystemInfo)] diff --git a/MareSynchronosServer/MareSynchronosServer/Hubs/FilesHub.cs b/MareSynchronosServer/MareSynchronosServer/Hubs/FilesHub.cs index 35a57b7e..0986f09f 100644 --- a/MareSynchronosServer/MareSynchronosServer/Hubs/FilesHub.cs +++ b/MareSynchronosServer/MareSynchronosServer/Hubs/FilesHub.cs @@ -47,7 +47,6 @@ public async Task DeleteAllFiles() { 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) {