backend-manager 3.2.13 → 3.2.14
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
|
@@ -27,6 +27,7 @@ Middleware.prototype.run = function (library, options) {
|
|
|
27
27
|
const data = assistant.request.data;
|
|
28
28
|
const geolocation = assistant.request.geolocation;
|
|
29
29
|
const client = assistant.request.client;
|
|
30
|
+
const isProduction = assistant.meta.environment === 'production';
|
|
30
31
|
|
|
31
32
|
// Set options
|
|
32
33
|
options = options || {};
|
|
@@ -56,7 +57,7 @@ Middleware.prototype.run = function (library, options) {
|
|
|
56
57
|
|
|
57
58
|
// Setup usage
|
|
58
59
|
if (options.setupUsage) {
|
|
59
|
-
assistant.usage = await Manager.Usage().init(assistant);
|
|
60
|
+
assistant.usage = await Manager.Usage().init(assistant, {log: isProduction});
|
|
60
61
|
}
|
|
61
62
|
|
|
62
63
|
// Log working user
|