backend-manager 2.0.1 → 2.0.2
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 +1 -1
- package/src/cli/cli.js +5 -2
package/package.json
CHANGED
package/src/cli/cli.js
CHANGED
|
@@ -466,10 +466,13 @@ Main.prototype.setup = async function () {
|
|
|
466
466
|
}
|
|
467
467
|
|
|
468
468
|
|
|
469
|
-
const prepareStatsURL = `https://us-central1-${_.get(this.firebaseRC, 'projects.default')}.cloudfunctions.net/
|
|
470
|
-
// const prepareStatsURL = `https://us-central1-${_.get(this.firebaseRC, 'projects.default')}.cloudfunctions.net/
|
|
469
|
+
const prepareStatsURL = `https://us-central1-${_.get(this.firebaseRC, 'projects.default')}.cloudfunctions.net/bm_api?authenticationToken=${_.get(this.runtimeConfigJSON, 'backend_manager.key')}`;
|
|
470
|
+
// const prepareStatsURL = `https://us-central1-${_.get(this.firebaseRC, 'projects.default')}.cloudfunctions.net/bm_api?authenticationToken=undefined`;
|
|
471
471
|
const statsFetchResult = await fetch(prepareStatsURL, {
|
|
472
472
|
method: 'post',
|
|
473
|
+
body: JSON.stringify({
|
|
474
|
+
command: 'admin:get-stats',
|
|
475
|
+
}),
|
|
473
476
|
timeout: 3000,
|
|
474
477
|
})
|
|
475
478
|
.then(async (res) => {
|