From 6bc057d8d493f002db9cf5563b4dfaab65258781 Mon Sep 17 00:00:00 2001 From: Matias Date: Sat, 16 Feb 2019 12:09:08 -0300 Subject: [PATCH] Removing app root --- Integrations/OperationsModuleIntegration.js | 3 +-- package-lock.json | 5 ----- package.json | 1 - utils/logger.js | 3 +-- 4 files changed, 2 insertions(+), 10 deletions(-) diff --git a/Integrations/OperationsModuleIntegration.js b/Integrations/OperationsModuleIntegration.js index efdb623ac..43001d62c 100644 --- a/Integrations/OperationsModuleIntegration.js +++ b/Integrations/OperationsModuleIntegration.js @@ -1,6 +1,5 @@ const axios = require('axios') -const appRoot = require('app-root-path') -const auth = require(`${appRoot}/utils/auth`) +const auth = require('../utils/auth') exports.updateExecutionResults = async function (summaryDate, buyAverage, sellAverage, marketRate, combinedProfitsA, combinedProfitsB) { diff --git a/package-lock.json b/package-lock.json index 81321f1c6..72604727b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -134,11 +134,6 @@ "fclone": "^1.0.11" } }, - "app-root-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/app-root-path/-/app-root-path-2.1.0.tgz", - "integrity": "sha1-mL9lmTJ+zqGZMJhm6BQDaP0uZGo=" - }, "asn1": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", diff --git a/package.json b/package.json index 76efddcc2..90a19c944 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,6 @@ "license": "ISC", "dependencies": { "apollo-boost": "^0.1.16", - "app-root-path": "^2.1.0", "assert": "^1.4.1", "axios": "^0.18.0", "azure-storage": "^2.8.2", diff --git a/utils/logger.js b/utils/logger.js index 1cc942d0c..da3df770b 100644 --- a/utils/logger.js +++ b/utils/logger.js @@ -1,11 +1,10 @@ const winston = require('winston') -const appRoot = require('app-root-path') const util = require('util') const options = { file: { level: 'info', - filename: `${appRoot}/logs/app.log`, + filename: '../logs/app.log', handleExceptions: true, json: true, maxsize: 5242880, // 5MB