Skip to content

Commit

Permalink
hotfix for connectiondto
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanley Dimant committed Jul 7, 2022
1 parent f307c9c commit 0b458c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ public async Task<ConnectionDto> Heartbeat()
};
}

return new ConnectionDto();
return new ConnectionDto()
{
ServerVersion = API.Version
};
}

[HubMethodName(ConnectionHubAPI.InvokeGetSystemInfo)]
Expand Down
1 change: 0 additions & 1 deletion MareSynchronosServer/MareSynchronosServer/Hubs/FilesHub.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 0b458c0

Please sign in to comment.