Skip to content

Commit 2fd1aee

Browse files
:|
1 parent dbf9f32 commit 2fd1aee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

TransactionProcessor.BusinessLogic/Services/TransactionDomainService.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ private async Task AddDeviceToMerchant(Guid estateId,
260260
String deviceIdentifier,
261261
CancellationToken cancellationToken)
262262
{
263-
await this.GetToken(cancellationToken);
263+
this.TokenResponse = await this.GetToken(cancellationToken);
264264

265265
// Add the device to the merchant
266266
await this.EstateClient.AddDeviceToMerchant(this.TokenResponse.AccessToken,
@@ -291,7 +291,7 @@ private String GenerateTransactionReference()
291291
private async Task<EstateResponse> GetEstate(Guid estateId,
292292
CancellationToken cancellationToken)
293293
{
294-
await this.GetToken(cancellationToken);
294+
this.TokenResponse = await this.GetToken(cancellationToken);
295295

296296
EstateResponse estate = await this.EstateClient.GetEstate(this.TokenResponse.AccessToken, estateId, cancellationToken);
297297

@@ -302,7 +302,7 @@ private async Task<MerchantResponse> GetMerchant(Guid estateId,
302302
Guid merchantId,
303303
CancellationToken cancellationToken)
304304
{
305-
await this.GetToken(cancellationToken);
305+
this.TokenResponse = await this.GetToken(cancellationToken);
306306

307307
MerchantResponse merchant = await this.EstateClient.GetMerchant(this.TokenResponse.AccessToken, estateId, merchantId, cancellationToken);
308308

0 commit comments

Comments
 (0)