-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use expression for challenge filter when counting
- Loading branch information
1 parent
a09477f
commit ff9b7f0
Showing
4 changed files
with
19 additions
and
10 deletions.
There are no files selected for viewing
7 changes: 5 additions & 2 deletions
7
...tas/src/Quotas.Application/Infrastructure/Persistence/Repository/IChallengesRepository.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
namespace Backbone.Modules.Quotas.Application.Infrastructure.Persistence.Repository; | ||
using System.Linq.Expressions; | ||
using Backbone.Modules.Quotas.Domain.Aggregates.Challenges; | ||
|
||
namespace Backbone.Modules.Quotas.Application.Infrastructure.Persistence.Repository; | ||
|
||
public interface IChallengesRepository | ||
{ | ||
Task<uint> Count(string identityAddress, DateTime from, DateTime to, CancellationToken cancellationToken); | ||
Task<uint> Count(Expression<Func<Challenge, bool>> filter, CancellationToken cancellationToken); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters