backend-manager 2.4.23 → 2.4.26
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
|
@@ -48,6 +48,10 @@ Module.prototype.main = function() {
|
|
|
48
48
|
self.payload.data = assistant.request.data;
|
|
49
49
|
self.payload.user = await assistant.authenticate();
|
|
50
50
|
|
|
51
|
+
if (self.assistant.request.method === 'OPTIONS') {
|
|
52
|
+
return resolve();
|
|
53
|
+
}
|
|
54
|
+
|
|
51
55
|
const resolved = self.resolveCommand(self.payload.data.command);
|
|
52
56
|
|
|
53
57
|
self.assistant.log(`Executing: ${resolved.command}`, self.payload, JSON.stringify(self.payload), {environment: 'production'})
|
package/src/manager/index.js
CHANGED
|
@@ -408,11 +408,6 @@ Manager.prototype._process = function (mod) {
|
|
|
408
408
|
return new Promise(async function(resolve, reject) {
|
|
409
409
|
let error;
|
|
410
410
|
|
|
411
|
-
console.log('---method', method);
|
|
412
|
-
if (method === 'OPTIONS') {
|
|
413
|
-
return resolve();
|
|
414
|
-
}
|
|
415
|
-
|
|
416
411
|
function _reject(e, log) {
|
|
417
412
|
if (log) {
|
|
418
413
|
// self.assistant.error(e, {environment: 'production'});
|