From a3cc1f2ef0fc9c40261f4b21f7a847d560672f08 Mon Sep 17 00:00:00 2001 From: Umar Bolatov Date: Sat, 23 Oct 2021 22:28:50 -0700 Subject: [PATCH] Fix typos --- BTCPayServer/Services/Invoices/InvoiceRepository.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/BTCPayServer/Services/Invoices/InvoiceRepository.cs b/BTCPayServer/Services/Invoices/InvoiceRepository.cs index e50f8b40b..4654ba201 100644 --- a/BTCPayServer/Services/Invoices/InvoiceRepository.cs +++ b/BTCPayServer/Services/Invoices/InvoiceRepository.cs @@ -536,11 +536,11 @@ namespace BTCPayServer.Services.Invoices return true; } - public async Task GetInvoice(string id, bool inludeAddressData = false) + public async Task GetInvoice(string id, bool includeAddressData = false) { using (var context = _applicationDbContextFactory.CreateContext()) { - var res = await GetInvoiceRaw(id, context, inludeAddressData); + var res = await GetInvoiceRaw(id, context, includeAddressData); return res == null ? null : ToEntity(res); } } @@ -559,13 +559,13 @@ namespace BTCPayServer.Services.Invoices } } - private async Task GetInvoiceRaw(string id, ApplicationDbContext dbContext, bool inludeAddressData = false) + private async Task GetInvoiceRaw(string id, ApplicationDbContext dbContext, bool includeAddressData = false) { IQueryable query = dbContext .Invoices .Include(o => o.Payments); - if (inludeAddressData) + if (includeAddressData) query = query.Include(o => o.HistoricalAddressInvoices).Include(o => o.AddressInvoices); query = query.Where(i => i.Id == id);