mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
feat(analytics): AB testing
User model update for AB tests, and the first AB test to start Sept 12 closes #7984
This commit is contained in:
committed by
Blade Barringer
parent
6f2767edd3
commit
f20a7b851f
@@ -10,7 +10,7 @@ import schema from './schema';
|
||||
schema.plugin(baseModel, {
|
||||
// noSet is not used as updating uses a whitelist and creating only accepts specific params (password, email, username, ...)
|
||||
noSet: [],
|
||||
private: ['auth.local.hashed_password', 'auth.local.salt', '_cronSignature'],
|
||||
private: ['auth.local.hashed_password', 'auth.local.salt', '_cronSignature', '_ABtest'],
|
||||
toJSONTransform: function userToJSON (plainObj, originalDoc) {
|
||||
plainObj._tmp = originalDoc._tmp; // be sure to send down drop notifs
|
||||
delete plainObj.filters;
|
||||
|
||||
Reference in New Issue
Block a user