From e9f817c6920d6e1f99ca3636e1c99d07ced70203 Mon Sep 17 00:00:00 2001 From: Stas Arshanski Date: Thu, 17 Oct 2019 21:32:01 +0300 Subject: [PATCH] move rollbar _createItem to top.. (remove error _createItem not defined) --- src/server/rollbar.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/server/rollbar.js b/src/server/rollbar.js index d50f35508..8df3d6386 100644 --- a/src/server/rollbar.js +++ b/src/server/rollbar.js @@ -96,6 +96,13 @@ Rollbar.configure = function(options, payloadData) { } }; + + +Rollbar.prototype._createItem = function(args) { + var requestKeys = ['headers', 'protocol', 'url', 'method', 'body', 'route']; + return _.createItem(args, logger, this, requestKeys, this.lambdaContext); +}; + Rollbar.prototype.lastError = function() { return this.client.lastError; }; @@ -511,11 +518,6 @@ function addPredicatesToQueue(queue) { .addPredicate(sharedPredicates.messageIsIgnored(logger)); } -Rollbar.prototype._createItem = function(args) { - var requestKeys = ['headers', 'protocol', 'url', 'method', 'body', 'route']; - return _.createItem(args, logger, this, requestKeys, this.lambdaContext); -}; - function _getFirstFunction(args) { for (var i = 0, len = args.length; i < len; ++i) { if (_.isFunction(args[i])) {