Fixup the test using fallbackEmail

This commit is contained in:
Johannes Zellner
2018-01-22 11:52:58 +01:00
parent 6fdb093595
commit cf94f26d62
6 changed files with 24 additions and 9 deletions
+1 -1
View File
@@ -351,7 +351,7 @@ function updateUser(userId, data, auditSource, callback) {
assert.strictEqual(typeof callback, 'function');
var error;
data = _.pick(data, 'email', 'displayName', 'username');
data = _.pick(data, 'email', 'fallbackEmail', 'displayName', 'username');
if (_.isEmpty(data)) return callback();