backend-manager 3.2.47 → 3.2.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -41,7 +41,7 @@ Module.prototype.main = function () {
|
|
|
41
41
|
// Create the user with the base data
|
|
42
42
|
const temporaryRecord = {
|
|
43
43
|
signupOptions: {
|
|
44
|
-
newsletter: payload.newsletterSignUp || payload.newsletter || false,
|
|
44
|
+
newsletter: payload.data.newsletterSignUp || payload.data.newsletter || false,
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
const userRecord = {
|
|
@@ -50,7 +50,7 @@ Module.prototype.main = function () {
|
|
|
50
50
|
client: assistant.request.client,
|
|
51
51
|
},
|
|
52
52
|
affiliate: {
|
|
53
|
-
referrer: payload.affiliateCode || payload.affiliate || null,
|
|
53
|
+
referrer: payload.data.affiliateCode || payload.data.affiliate || null,
|
|
54
54
|
},
|
|
55
55
|
auth: {
|
|
56
56
|
email: authUser.email,
|
|
@@ -385,7 +385,7 @@ Module.prototype.addToSendGridList = function (user) {
|
|
|
385
385
|
})
|
|
386
386
|
.then((r) => {
|
|
387
387
|
assistant.log('addToSendGridList(): Success', r)
|
|
388
|
-
return resolve(
|
|
388
|
+
return resolve(r);
|
|
389
389
|
})
|
|
390
390
|
.catch((e) => {
|
|
391
391
|
assistant.error('addToSendGridList(): Failed', e)
|