diff --git a/server/helpers/handlePageRender.jsx b/server/helpers/handlePageRender.jsx index 5f46b9ca..3c35edba 100644 --- a/server/helpers/handlePageRender.jsx +++ b/server/helpers/handlePageRender.jsx @@ -14,7 +14,7 @@ import { Reducers, GAListener, App } from 'spee.ch-components'; import renderFullPage from './renderFullPage.js'; import Helmet from 'react-helmet'; -const siteConfig = require('siteConfig.js'); +const siteConfig = require('../../config/siteConfig.js'); module.exports = (req, res) => { let context = {}; diff --git a/server/models/index.js b/server/models/index.js index 898c3331..6c5a084d 100644 --- a/server/models/index.js +++ b/server/models/index.js @@ -1,9 +1,9 @@ -const Certificate = require('models/certificate.js'); -const Channel = require('models/channel.js'); -const Claim = require('models/claim.js'); -const File = require('models/file.js'); -const Request = require('models/request.js'); -const User = require('models/user.js'); +const Certificate = require('./certificate.js'); +const Channel = require('./channel.js'); +const Claim = require('./claim.js'); +const File = require('./file.js'); +const Request = require('./request.js'); +const User = require('./user.js'); const Sequelize = require('sequelize'); const logger = require('winston'); diff --git a/server/routes/api/index.js b/server/routes/api/index.js index 8679ab78..b6ce0964 100644 --- a/server/routes/api/index.js +++ b/server/routes/api/index.js @@ -12,7 +12,7 @@ const claimShortId = require('./claimShortId'); const claimList = require('./claimList'); const fileAvailability = require('./fileAvailability'); -const multipartMiddleware = require('helpers/multipartMiddleware'); +const multipartMiddleware = require('../../helpers/multipartMiddleware'); module.exports = (app) => { // channel routes diff --git a/server/routes/pages/sendReactApp.js b/server/routes/pages/sendReactApp.js index b6aac94b..794ab587 100644 --- a/server/routes/pages/sendReactApp.js +++ b/server/routes/pages/sendReactApp.js @@ -1,4 +1,4 @@ -const handlePageRender = require('helpers/handlePageRender.jsx'); +const handlePageRender = require('../../helpers/handlePageRender.jsx'); const sendReactApp = (req, res) => { handlePageRender(req, res); diff --git a/server/speechPassport/index.js b/server/speechPassport/index.js index b7a418b3..3c60d3bc 100644 --- a/server/speechPassport/index.js +++ b/server/speechPassport/index.js @@ -1,7 +1,7 @@ const passport = require('passport'); const localLoginStrategy = require('./local-login.js'); const localSignupStrategy = require('./local-signup.js'); -const { serializeSpeechUser, deserializeSpeechUser } = require('helpers/authHelpers.js'); +const { serializeSpeechUser, deserializeSpeechUser } = require('../helpers/authHelpers.js'); passport.deserializeUser(deserializeSpeechUser); passport.serializeUser(serializeSpeechUser); diff --git a/server/speechPassport/local-login.js b/server/speechPassport/local-login.js index a9255ee6..42be4b47 100644 --- a/server/speechPassport/local-login.js +++ b/server/speechPassport/local-login.js @@ -1,6 +1,6 @@ const PassportLocalStrategy = require('passport-local').Strategy; const logger = require('winston'); -const db = require('models'); +const db = require('../models'); const returnUserAndChannelInfo = (userInstance) => { return new Promise((resolve, reject) => { diff --git a/server/speechPassport/local-signup.js b/server/speechPassport/local-signup.js index 7f487489..07971a9e 100644 --- a/server/speechPassport/local-signup.js +++ b/server/speechPassport/local-signup.js @@ -1,7 +1,7 @@ const PassportLocalStrategy = require('passport-local').Strategy; const lbryApi = require('../helpers/lbryApi.js'); const logger = require('winston'); -const db = require('models'); +const db = require('../models'); module.exports = new PassportLocalStrategy( { diff --git a/server/task-scripts/update-channel-names.js b/server/task-scripts/update-channel-names.js index 31f6a202..2ea7e9ec 100644 --- a/server/task-scripts/update-channel-names.js +++ b/server/task-scripts/update-channel-names.js @@ -1,8 +1,7 @@ // load dependencies const logger = require('winston'); -const db = require('models'); -// configure logging -require('helpers/configureLogger.js')(logger); +const db = require('../models'); +require('../helpers/configureLogger.js')(logger); let totalClaims = 0; let totalClaimsNoCertificate = 0;