Skip to content

Commit

Permalink
Try to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerlong committed Sep 22, 2020
1 parent 6e72de7 commit 7635cc8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions RingCentral.Tests/BatchGetTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ await rc.Authorize(
);

var callLogsResponse = await rc.Restapi().Account().Extension().CallLog()
.List(new ReadUserCallLogParameters {perPage = 3, dateFrom = DateTime.Today.AddYears(-1).ToString("O")});
.List(new ReadUserCallLogParameters {perPage = 3, dateFrom = DateTime.UtcNow.AddYears(-1).ToString("O")});
var callLogIds = string.Join(',', callLogsResponse.records.Select(r => r.id));

var batchResponses = await rc.Restapi().Account().Extension().CallLog(callLogIds).BatchGet();
Expand Down Expand Up @@ -94,7 +94,7 @@ await rc.Authorize(
);

var callLogsResponse = await rc.Restapi().Account().Extension().CallLog()
.List(new ReadUserCallLogParameters {perPage = 3, dateFrom = DateTime.Today.AddYears(-3).ToString("O")});
.List(new ReadUserCallLogParameters {perPage = 3, dateFrom = DateTime.UtcNow.AddYears(-3).ToString("O")});
var callLogIds = string.Join(',', callLogsResponse.records.Select(r => r.id));

var batchResponses =
Expand Down Expand Up @@ -126,9 +126,8 @@ await rc.Authorize(
ArgumentException argumentException = null;
try
{
var batchResponses =
await rc.BatchGet<UserCallLogRecord>(rc.Restapi().Account().Extension().CallLog(callLogIds)
.Path());
await rc.BatchGet<UserCallLogRecord>(rc.Restapi().Account().Extension().CallLog(callLogIds)
.Path());
}
catch (ArgumentException ae)
{
Expand Down

0 comments on commit 7635cc8

Please sign in to comment.