backend-manager 5.0.169 → 5.0.170

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/TODO-2.md CHANGED
@@ -10,6 +10,9 @@ payments/reactivate
10
10
  payments/upgrade
11
11
  * takes a subscription id and a new plan id and upgrades the user's subscription to the new plan. this can only be done if the user has an active subscription.
12
12
 
13
+ -------
14
+ UPSELL
15
+ * products in BEM can have an UPSELL where you link another product ID and it allows you to add it to your cart OR shows you after checkout?
13
16
 
14
17
  -------
15
18
  USER OBJECT UPDGRADE --> INSTANCE?
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "backend-manager",
3
- "version": "5.0.169",
3
+ "version": "5.0.170",
4
4
  "description": "Quick tools for developing Firebase functions",
5
5
  "main": "src/manager/index.js",
6
6
  "bin": {
@@ -235,7 +235,7 @@ function uploadPost(assistant, settings, article) {
235
235
  author: settings.author,
236
236
  categories: article.categories,
237
237
  tags: article.keywords,
238
- path: 'ghostii',
238
+ postPath: 'ghostii',
239
239
  githubUser: settings.brand.github.user,
240
240
  githubRepo: settings.brand.github.repo,
241
241
  },
@@ -2,12 +2,12 @@ const path = require('path');
2
2
  const powertools = require('node-powertools');
3
3
 
4
4
  /**
5
- * POST /payments/dispute-alert?alerts=chargeblast&key=XXX
5
+ * POST /payments/dispute-alert?provider=chargeblast&key=XXX
6
6
  * Receives dispute alert webhooks (e.g., from Chargeblast), validates them,
7
7
  * and saves to Firestore for async processing via onWrite trigger
8
8
  *
9
9
  * Query params:
10
- * - alerts: alert provider name (default: 'chargeblast')
10
+ * - provider: alert provider name (default: 'chargeblast')
11
11
  * - key: must match BACKEND_MANAGER_KEY
12
12
  */
13
13
  module.exports = async ({ assistant, Manager, libraries }) => {
@@ -22,7 +22,7 @@ module.exports = async ({ assistant, Manager, libraries }) => {
22
22
  }
23
23
 
24
24
  // Determine alert provider (default: chargeblast)
25
- const provider = query.alerts || 'chargeblast';
25
+ const provider = query.provider || 'chargeblast';
26
26
 
27
27
  // Load the processor module
28
28
  let processorModule;