fix
This commit is contained in:
@@ -16,7 +16,10 @@ public class CurrencyRepository : AppRepository<Currency>, ICurrencyRepository
|
||||
|
||||
public Currency? Get(Guid userId, Guid id)
|
||||
{
|
||||
return _context.Currencies.FirstOrDefault(x => x.Id == id && x.UserId == userId);
|
||||
return _context
|
||||
.Currencies
|
||||
.Include(x => x.CurrencyGlobal)
|
||||
.FirstOrDefault(x => x.Id == id && x.UserId == userId);
|
||||
}
|
||||
|
||||
public Currency? GetByGlobalCurrency(Guid userId, string globalCurrencyId)
|
||||
|
||||
Reference in New Issue
Block a user