backend-manager 3.2.48 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backend-manager",
3
- "version": "3.2.48",
3
+ "version": "3.2.49",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -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,