Skip to content

Commit

Permalink
fix: add filtering on container id (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
taustad authored Nov 13, 2023
1 parent 2f21d8e commit 6162ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datasheetapi/Repositories/ContainerRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public ContainerRepository(ILoggerFactory loggerFactory, DatabaseContext context

public async Task<Container?> GetContainer(Guid id)
{
var revisionContainer = await _context.Containers.Include(c => c.Tags).FirstOrDefaultAsync();
var revisionContainer = await _context.Containers.Include(c => c.Tags).FirstOrDefaultAsync(c => c.Id == id);
return revisionContainer;
}

Expand Down

0 comments on commit 6162ee1

Please sign in to comment.