diff --git a/HashSlinger.Shared/Models/File.cs b/HashSlinger.Shared/Models/File.cs index 1732a99..b51b36e 100644 --- a/HashSlinger.Shared/Models/File.cs +++ b/HashSlinger.Shared/Models/File.cs @@ -65,5 +65,5 @@ public record File /// Gets or sets the size. /// The size, in bytes. /// - public long Size { get; set; } + public int Size { get; set; } } diff --git a/HashSlinger/Endpoints/HashtopolisApiV2/HashtopolisEndpoints.cs b/HashSlinger/Endpoints/HashtopolisApiV2/HashtopolisEndpoints.cs index f6f1781..b91cf63 100644 --- a/HashSlinger/Endpoints/HashtopolisApiV2/HashtopolisEndpoints.cs +++ b/HashSlinger/Endpoints/HashtopolisApiV2/HashtopolisEndpoints.cs @@ -105,7 +105,9 @@ IFileStorageService fileStorageService new[] { "HEAD" }, async ( int id, + HashSlingerContext context + ) => { return await context.Files.AnyAsync(x => x.Id == id).ConfigureAwait(true) @@ -116,7 +118,6 @@ HashSlingerContext context .Produces(StatusCodes.Status200OK) .WithName("DownloadFileHead") .WithOpenApi(); - // This is a mess and I need to move it somewhere else. group.MapPost("/putFile", async (IFormFile file,