Skip to content

Commit

Permalink
chore: remove unused file
Browse files Browse the repository at this point in the history
  • Loading branch information
tnotheis committed Feb 12, 2024
1 parent 3e5e535 commit 57ce516
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using Backbone.Modules.Quotas.Domain.Aggregates.Identities;
using Backbone.Modules.Quotas.Domain.Aggregates.Tiers;
using Backbone.Modules.Quotas.Infrastructure.Persistence.Database;
using Backbone.Modules.Quotas.Infrastructure.Persistence.Database.QueryableExtensions;
using Microsoft.EntityFrameworkCore;

namespace Backbone.Modules.Quotas.Infrastructure.Persistence.Repository;
Expand Down Expand Up @@ -31,7 +30,7 @@ public async Task Add(Identity identity, CancellationToken cancellationToken)
{
var identity = await (track ? _identitiesDbSet : _readOnlyIdentities)
.IncludeAll(_dbContext)
.FirstWithAddress(address, cancellationToken);
.FirstOrDefaultAsync(i => i.Address == address, cancellationToken);

return identity;
}
Expand All @@ -48,7 +47,8 @@ public async Task<IEnumerable<Identity>> FindWithTier(TierId tierId, Cancellatio
{
var identities = await (track ? _identitiesDbSet : _readOnlyIdentities)
.IncludeAll(_dbContext)
.WithTier(tierId, cancellationToken);
.Where(i => i.TierId == tierId)
.ToListAsync(cancellationToken);

return identities;
}
Expand Down

0 comments on commit 57ce516

Please sign in to comment.