Skip to content
This repository has been archived by the owner on Apr 14, 2024. It is now read-only.

Commit

Permalink
Merge branch '9-implement-get-chunk-api-call' into master
Browse files Browse the repository at this point in the history
Signed-off-by: UncleSp1d3r <[email protected]>
  • Loading branch information
unclesp1d3r authored Nov 10, 2023
2 parents 9c06f61 + 5b9cc65 commit 07a02b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion HashSlinger.Shared/Models/File.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,5 @@ public record File
/// <summary>Gets or sets the size.</summary>
/// <value>The size, in bytes.</value>
/// <autogeneratedoc />
public long Size { get; set; }
public int Size { get; set; }
}
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ IFileStorageService fileStorageService
new[] { "HEAD" },
async (
int id,

HashSlingerContext context

) =>
{
return await context.Files.AnyAsync(x => x.Id == id).ConfigureAwait(true)
Expand All @@ -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,
Expand Down

0 comments on commit 07a02b5

Please sign in to comment.