Skip to content

Commit

Permalink
Change IsApproved paramter on private method to non-optional
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaksn committed Oct 24, 2024
1 parent b642e0a commit 11754a3
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ public void SetupKeySecret(
{
using (var context = _contextFactory.CreateContext())
{
var client = CreateApiClient(context, userId, name, sandboxType, key, secret);
var client = CreateApiClient(context, userId, name, sandboxType, key, secret, true);

AddApplicationEducationOrganizations(context, applicationId, client);

Expand Down Expand Up @@ -509,7 +509,7 @@ public ApiClient SetupDefaultSandboxClient(
using (var context = _contextFactory.CreateContext())
{
_logger.Debug($"Creating API Client");
var client = GetClient(key, secret) ?? CreateApiClient(context, userId, name, sandboxType, key, secret);
var client = GetClient(key, secret) ?? CreateApiClient(context, userId, name, sandboxType, key, secret, true);

_logger.Debug($"Adding Education Organization to client");
AddApplicationEducationOrganizations(context, applicationId, client);
Expand Down Expand Up @@ -728,8 +728,8 @@ private ApiClient CreateApiClient(IUsersContext context,
string name,
SandboxType sandboxType,
string key,
string secret,
bool isApproved = true)
string secret,
bool isApproved)
{
var attachedUser = context.Users.Find(userId);

Expand Down

0 comments on commit 11754a3

Please sign in to comment.