diff --git a/server/app.js b/server/app.js index c9ebf6a19..2437e3b38 100644 --- a/server/app.js +++ b/server/app.js @@ -1,4 +1,7 @@ /*eslint max-lines: ["warn", {"max": 300, "skipBlankLines": true, "skipComments": true}]*/ +// Set working directory to project root +process.chdir(`${__dirname}/..`); + const _ = require('lodash'); const jwt = require('jwt-simple'); const express = require('express'); @@ -14,9 +17,6 @@ const asyncHandler = require('express-async-handler'); const brewAccessTypes = ['edit', 'share', 'raw']; -// Set working directory to project root -process.chdir(`${__dirname}/..`); - //Get the brew object from the HB database or Google Drive const getBrewFromId = asyncHandler(async (id, accessType)=>{ if(!brewAccessTypes.includes(accessType))