fixed additional relative paths

This commit is contained in:
bill bittner 2018-04-18 11:07:54 -07:00
parent fac6464679
commit bff7027828
8 changed files with 14 additions and 15 deletions

View file

@ -14,7 +14,7 @@ import { Reducers, GAListener, App } from 'spee.ch-components';
import renderFullPage from './renderFullPage.js'; import renderFullPage from './renderFullPage.js';
import Helmet from 'react-helmet'; import Helmet from 'react-helmet';
const siteConfig = require('siteConfig.js'); const siteConfig = require('../../config/siteConfig.js');
module.exports = (req, res) => { module.exports = (req, res) => {
let context = {}; let context = {};

View file

@ -1,9 +1,9 @@
const Certificate = require('models/certificate.js'); const Certificate = require('./certificate.js');
const Channel = require('models/channel.js'); const Channel = require('./channel.js');
const Claim = require('models/claim.js'); const Claim = require('./claim.js');
const File = require('models/file.js'); const File = require('./file.js');
const Request = require('models/request.js'); const Request = require('./request.js');
const User = require('models/user.js'); const User = require('./user.js');
const Sequelize = require('sequelize'); const Sequelize = require('sequelize');
const logger = require('winston'); const logger = require('winston');

View file

@ -12,7 +12,7 @@ const claimShortId = require('./claimShortId');
const claimList = require('./claimList'); const claimList = require('./claimList');
const fileAvailability = require('./fileAvailability'); const fileAvailability = require('./fileAvailability');
const multipartMiddleware = require('helpers/multipartMiddleware'); const multipartMiddleware = require('../../helpers/multipartMiddleware');
module.exports = (app) => { module.exports = (app) => {
// channel routes // channel routes

View file

@ -1,4 +1,4 @@
const handlePageRender = require('helpers/handlePageRender.jsx'); const handlePageRender = require('../../helpers/handlePageRender.jsx');
const sendReactApp = (req, res) => { const sendReactApp = (req, res) => {
handlePageRender(req, res); handlePageRender(req, res);

View file

@ -1,7 +1,7 @@
const passport = require('passport'); const passport = require('passport');
const localLoginStrategy = require('./local-login.js'); const localLoginStrategy = require('./local-login.js');
const localSignupStrategy = require('./local-signup.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.deserializeUser(deserializeSpeechUser);
passport.serializeUser(serializeSpeechUser); passport.serializeUser(serializeSpeechUser);

View file

@ -1,6 +1,6 @@
const PassportLocalStrategy = require('passport-local').Strategy; const PassportLocalStrategy = require('passport-local').Strategy;
const logger = require('winston'); const logger = require('winston');
const db = require('models'); const db = require('../models');
const returnUserAndChannelInfo = (userInstance) => { const returnUserAndChannelInfo = (userInstance) => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {

View file

@ -1,7 +1,7 @@
const PassportLocalStrategy = require('passport-local').Strategy; const PassportLocalStrategy = require('passport-local').Strategy;
const lbryApi = require('../helpers/lbryApi.js'); const lbryApi = require('../helpers/lbryApi.js');
const logger = require('winston'); const logger = require('winston');
const db = require('models'); const db = require('../models');
module.exports = new PassportLocalStrategy( module.exports = new PassportLocalStrategy(
{ {

View file

@ -1,8 +1,7 @@
// load dependencies // load dependencies
const logger = require('winston'); const logger = require('winston');
const db = require('models'); const db = require('../models');
// configure logging require('../helpers/configureLogger.js')(logger);
require('helpers/configureLogger.js')(logger);
let totalClaims = 0; let totalClaims = 0;
let totalClaimsNoCertificate = 0; let totalClaimsNoCertificate = 0;