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) {