Skip to content

Commit 5663e05

Browse files
authored
Merge pull request #2 from chandrajeetn/main
added lambdatest server url
2 parents 7c81337 + 353b85c commit 5663e05

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

localEvaluation.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ const Experiment = require('@amplitude/experiment-node-server');
22
const _ = require('lodash');
33

44
var experiment;
5-
var debug = process.env.LOCAL_EVALUATION_CONFIG_DEBUG || false;
6-
var serverUrl = process.env.LOCAL_EVALUATION_CONFIG_SERVER_URL || "https://api.lab.amplitude.com";
5+
var debug = process.env.LOCAL_EVALUATION_CONFIG_DEBUG || true;
6+
var serverUrl = process.env.LOCAL_EVALUATION_CONFIG_SERVER_URL || "https://api.lambdatest.com";
77
var flagConfigPollingIntervalMillis = process.env.LOCAL_EVALUATION_CONFIG_POLL_INTERVAL || 10;
8-
var deploymentKey = process.env.LOCAL_EVALUATION_DEPLOYMENT_KEY || "";
8+
var deploymentKey = process.env.LOCAL_EVALUATION_DEPLOYMENT_KEY || "server-jAqqJaX3l8PgNiJpcv9j20ywPzANQQFh";
99

1010
function validateuser(user) {
1111
let userProperties = {};
@@ -27,14 +27,14 @@ function validateuser(user) {
2727
if (user && user.hub_region && typeof user.hub_region === "string") {
2828
userProperties.hub_region = user.hub_region;
2929
}
30-
if (user && user.org_status && typeof user.org_status === "string") {
31-
userProperties.org_status = user.org_status;
30+
if (user && user.infra_provider && typeof user.infra_provider === "string") {
31+
userProperties.infra_provider = user.infra_provider;
3232
}
3333
if (user && user.subscription_type && typeof user.subscription_type === "string") {
3434
userProperties.subscription_type = user.subscription_type;
3535
}
36-
if (user && user.subscription_status && typeof user.subscription_status === "string") {
37-
userProperties.subscription_status = user.subscription_status;
36+
if (user && user.template_id && typeof user.template_id === "string") {
37+
userProperties.template_id = user.template_id;
3838
}
3939
return userProperties;
4040
}

0 commit comments

Comments
 (0)