mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +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:
@@ -527,7 +527,10 @@ let schema = new Schema({
|
||||
return {};
|
||||
}},
|
||||
pushDevices: [PushDeviceSchema],
|
||||
_ABtest: {type: String},
|
||||
_ABtest: {type: String}, // deprecated. Superseded by _ABtests
|
||||
_ABtests: {type: Schema.Types.Mixed, default: () => {
|
||||
return {};
|
||||
}},
|
||||
webhooks: [WebhookSchema],
|
||||
loginIncentives: {type: Number, default: 0},
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user