mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Mixed type field for A/B testing (#8302)
* feat(AB-testing): mixed type field
* fix(AB-testing): lint errors
* fix(AB-testing): allow client access to _ABtests
* Revert "fix(AB-testing): allow client access to _ABtests"
This reverts commit 25832365ba.
* fix(AB-testing): preview check on server
* refactor(AB-testing): add comments
This commit is contained in:
@@ -130,6 +130,8 @@ function trackCronAnalytics (analytics, user, _progress, options) {
|
||||
|
||||
function awardLoginIncentives (user) {
|
||||
if (user.loginIncentives > 50) return;
|
||||
// A/B test 2016-12-21: Should we deliver notifications for upcoming incentives on days when users don't receive rewards?
|
||||
if (!loginIncentives[user.loginIncentives].rewardKey && user._ABtests && user._ABtests.checkInModals === '20161221_noCheckInPreviews') return;
|
||||
|
||||
// Remove old notifications if they exists
|
||||
user.notifications
|
||||
|
||||
Reference in New Issue
Block a user