1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 00:22:50 -05:00

Fix typo: 'metaDataRespository' -> 'metaDataRepository'

This commit is contained in:
Jim Hays
2023-04-24 16:56:04 -04:00
parent ffa1021927
commit 61388721b6

View File

@ -15,18 +15,18 @@ public class AppleIapService : IAppleIapService
private readonly GlobalSettings _globalSettings; private readonly GlobalSettings _globalSettings;
private readonly IWebHostEnvironment _hostingEnvironment; private readonly IWebHostEnvironment _hostingEnvironment;
private readonly IMetaDataRepository _metaDataRespository; private readonly IMetaDataRepository _metaDataRepository;
private readonly ILogger<AppleIapService> _logger; private readonly ILogger<AppleIapService> _logger;
public AppleIapService( public AppleIapService(
GlobalSettings globalSettings, GlobalSettings globalSettings,
IWebHostEnvironment hostingEnvironment, IWebHostEnvironment hostingEnvironment,
IMetaDataRepository metaDataRespository, IMetaDataRepository metaDataRepository,
ILogger<AppleIapService> logger) ILogger<AppleIapService> logger)
{ {
_globalSettings = globalSettings; _globalSettings = globalSettings;
_hostingEnvironment = hostingEnvironment; _hostingEnvironment = hostingEnvironment;
_metaDataRespository = metaDataRespository; _metaDataRepository = metaDataRepository;
_logger = logger; _logger = logger;
} }
@ -61,7 +61,7 @@ public class AppleIapService : IAppleIapService
{ {
throw new Exception("OriginalTransactionId is null"); throw new Exception("OriginalTransactionId is null");
} }
await _metaDataRespository.UpsertAsync("AppleReceipt", originalTransactionId, await _metaDataRepository.UpsertAsync("AppleReceipt", originalTransactionId,
new Dictionary<string, string> new Dictionary<string, string>
{ {
["Data"] = receiptStatus.GetReceiptData(), ["Data"] = receiptStatus.GetReceiptData(),
@ -71,7 +71,7 @@ public class AppleIapService : IAppleIapService
public async Task<Tuple<string, Guid?>> GetReceiptAsync(string originalTransactionId) public async Task<Tuple<string, Guid?>> GetReceiptAsync(string originalTransactionId)
{ {
var receipt = await _metaDataRespository.GetAsync("AppleReceipt", originalTransactionId); var receipt = await _metaDataRepository.GetAsync("AppleReceipt", originalTransactionId);
if (receipt == null) if (receipt == null)
{ {
return null; return null;