fixed view single file page

This commit is contained in:
michael-bailey 2025-03-19 02:00:03 +00:00
parent f311e14ec1
commit 3590e954a9
1 changed files with 4 additions and 4 deletions

View File

@ -14,14 +14,14 @@ public class FileRepository(ApplicationDbContext context)
public async Task<List<FileHandle>> GetAllFilesAsync()
{
return await context.FileHandles
.Include(e => e.FileBlocks).ToListAsync();
return await context.FileHandles.ToListAsync();
}
public async Task<FileHandle> GetFileAsync(Guid id)
{
return await context.FileHandles
.Include(e => e.FileBlocks).FirstAsync();
return await (from handle in context.FileHandles
where handle.Id == id
select handle).FirstAsync();
}
public Task<string> GetFileName(Guid id)