mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-16 17:25:58 +00:00
Fix sendMessage in DE (#1570)
* Fix issue in sendMessage in DE * Run npm format
This commit is contained in:
parent
879cb08949
commit
daa26d289b
@ -283,18 +283,18 @@ export default class Explorer {
|
|||||||
isAccountNewerThanThresholdInMs(userContext.databaseAccount?.systemData?.createdAt || "", ONE_DAY_IN_MS) &&
|
isAccountNewerThanThresholdInMs(userContext.databaseAccount?.systemData?.createdAt || "", ONE_DAY_IN_MS) &&
|
||||||
this.getRandomInt(100) < 25
|
this.getRandomInt(100) < 25
|
||||||
) {
|
) {
|
||||||
sendMessage(MessageTypes.DisplayNPSSurvey);
|
sendMessage({ type: MessageTypes.DisplayNPSSurvey });
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// An existing account is lesser than 90 days old. For existing account show to random 10 % of users in Data Explorer.
|
// An existing account is lesser than 90 days old. For existing account show to random 10 % of users in Data Explorer.
|
||||||
if (isAccountNewerThanNinetyDays) {
|
if (isAccountNewerThanNinetyDays) {
|
||||||
if (this.getRandomInt(100) < 10) {
|
if (this.getRandomInt(100) < 10) {
|
||||||
sendMessage(MessageTypes.DisplayNPSSurvey);
|
sendMessage({ type: MessageTypes.DisplayNPSSurvey });
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// An existing account is greater than 90 days. For existing account show to random 25 % of users in Data Explorer.
|
// An existing account is greater than 90 days. For existing account show to random 25 % of users in Data Explorer.
|
||||||
if (this.getRandomInt(100) < 25) {
|
if (this.getRandomInt(100) < 25) {
|
||||||
sendMessage(MessageTypes.DisplayNPSSurvey);
|
sendMessage({ type: MessageTypes.DisplayNPSSurvey });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user