inital commit to add confirmation to animalEars (#9666)

This commit is contained in:
Julius Jung
2018-01-05 14:26:45 -05:00
committed by Sabe Jones
parent acf4b4da63
commit 4576353f26
2 changed files with 5 additions and 2 deletions
+4
View File
@@ -91,6 +91,10 @@ module.exports = function unlock (user, req = {}, analytics) {
// Using Object so path[1] won't create an array but an object {path: {1: value}}
setWith(user, `preferences.${key}`, value, Object);
} else {
if (path.indexOf('gear.') !== -1) {
// Using Object so path[1] won't create an array but an object {path: {1: value}}
setWith(user, path, true, Object);
}
// Using Object so path[1] won't create an array but an object {path: {1: value}}
setWith(user, `purchased.${path}`, true, Object);