Removing app root

This commit is contained in:
Matias committed 2019-02-16 12:09:08 -03:00
1 parent 8bfe11a902
commit 6bc057d8d4
4 files changed
+2 -10

No files matched your search

+1 -2
View File
@@ -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) {
-5
View File
@@ -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",
-1
View File
@@ -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",
+1 -2
View File
@@ -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