Skip to content

Commit

Permalink
feat: migration
Browse files Browse the repository at this point in the history
  • Loading branch information
markettes committed Jun 28, 2024
1 parent a81730f commit a27b906
Show file tree
Hide file tree
Showing 4 changed files with 1,383 additions and 20 deletions.
6 changes: 3 additions & 3 deletions src/Data/Repositories/UTXOTagRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ public UTXOTagRepository(IRepository<UTXOTag> repository,
return await applicationDbContext.UTXOTags.FirstOrDefaultAsync(x => x.Key == key && x.Outpoint == outpoint);
}

public Task<List<UTXOTag>> GetByKeyValue(string key, string value)
public async Task<List<UTXOTag>> GetByKeyValue(string key, string value)
{
using var applicationDbContext = _dbContextFactory.CreateDbContext();
await using var applicationDbContext = await _dbContextFactory.CreateDbContextAsync();

return applicationDbContext.UTXOTags
return await applicationDbContext.UTXOTags
.Where(x => x.Key == key && x.Value == value).ToListAsync();
}

Expand Down
Loading

0 comments on commit a27b906

Please sign in to comment.