Skip to content

Commit

Permalink
Add async await to try and fix test on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
frederikprijck committed Aug 20, 2021
1 parent c099d07 commit 870487d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Auth0.ManagementApi/Clients/JobsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public Task<Job> GetAsync(string id)
/// <param name="externalId">Customer-defined id.</param>
/// <param name="sendCompletionEmail">Whether to send the user an email on import completion (true) or not (false).</param>
/// <returns>A <see cref="Job"/> instance containing the information about the job.</returns>
public Task<Job> ImportUsersAsync(string connectionId, string fileName, Stream file, bool? upsert = null, string externalId = null, bool? sendCompletionEmail = null)
public async Task<Job> ImportUsersAsync(string connectionId, string fileName, Stream file, bool? upsert = null, string externalId = null, bool? sendCompletionEmail = null)
{
if (file == null)
throw new ArgumentNullException(nameof(file));
Expand All @@ -72,7 +72,7 @@ public Task<Job> ImportUsersAsync(string connectionId, string fileName, Stream f
}
};

return Connection.SendAsync<Job>(HttpMethod.Post, BuildUri("jobs/users-imports"), parameters, DefaultHeaders, files: fileParameters);
return await Connection.SendAsync<Job>(HttpMethod.Post, BuildUri("jobs/users-imports"), parameters, DefaultHeaders, files: fileParameters);
}

/// <summary>
Expand Down

0 comments on commit 870487d

Please sign in to comment.