Skip to content

Commit

Permalink
refactor: Globals instead of Config in ValidateSubscription
Browse files Browse the repository at this point in the history
  • Loading branch information
Romazes committed Feb 21, 2024
1 parent 34e5616 commit 45a0b5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions QuantConnect.IQFeed/IQFeedDataProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,9 @@ private static void ValidateSubscription()
try
{
const int productId = 332;
var userId = Config.GetInt("job-user-id");
var token = Config.Get("api-access-token");
var organizationId = Config.Get("job-organization-id", null);
var userId = Globals.UserId;
var token = Globals.UserToken;
var organizationId = Globals.OrganizationID;
// Verify we can authenticate with this user and token
var api = new ApiConnection(userId, token);
if (!api.Connected)
Expand Down

0 comments on commit 45a0b5a

Please sign in to comment.