finished first pass at updating relative paths

This commit is contained in:
bill bittner 2018-04-17 14:57:45 -07:00
parent 7ad111413c
commit 6bed683d9f
11 changed files with 29 additions and 29 deletions

View file

@ -1,5 +1,5 @@
const db = require('models');
const logger = require('winston');
const db = require('../models');
module.exports = {
authenticateUser (channelName, channelId, channelPassword, user) {

View file

@ -1,6 +1,6 @@
const { checkChannelAvailability } = require('controllers/publishController.js');
const { sendGATimingEvent } = require('helpers/googleAnalytics.js');
const { handleErrorResponse } = require('helpers/errorHandlers.js');
const { checkChannelAvailability } = require('../../controllers/publishController.js');
const { sendGATimingEvent } = require('../../helpers/googleAnalytics.js');
const { handleErrorResponse } = require('../../helpers/errorHandlers.js');
/*

View file

@ -1,5 +1,5 @@
const { getChannelData } = require('controllers/serveController.js');
const { handleErrorResponse } = require('helpers/errorHandlers.js');
const { getChannelData } = require('../../controllers/serveController.js');
const { handleErrorResponse } = require('../../helpers/errorHandlers.js');
const NO_CHANNEL = 'NO_CHANNEL';

View file

@ -1,5 +1,5 @@
const { handleErrorResponse } = require('helpers/errorHandlers.js');
const db = require('models');
const { handleErrorResponse } = require('../../helpers/errorHandlers.js');
const db = require('../../models');
/*

View file

@ -1,5 +1,5 @@
const { getClaimId } = require('controllers/serveController.js');
const { handleErrorResponse } = require('helpers/errorHandlers.js');
const { getClaimId } = require('../../controllers/serveController.js');
const { handleErrorResponse } = require('../../helpers/errorHandlers.js');
const NO_CHANNEL = 'NO_CHANNEL';
const NO_CLAIM = 'NO_CLAIM';

View file

@ -1,9 +1,9 @@
const { createBasicPublishParams, createThumbnailPublishParams, parsePublishApiRequestBody, parsePublishApiRequestFiles } = require('helpers/publishHelpers.js');
const { claimNameIsAvailable, publish } = require('controllers/publishController.js');
const { authenticateUser } = require('auth/authentication.js');
const { sendGATimingEvent } = require('helpers/googleAnalytics.js');
const { handleErrorResponse } = require('helpers/errorHandlers.js');
const { details: { host } } = require('siteConfig.js');
const { createBasicPublishParams, createThumbnailPublishParams, parsePublishApiRequestBody, parsePublishApiRequestFiles } = require('../../helpers/publishHelpers.js');
const { claimNameIsAvailable, publish } = require('../../controllers/publishController.js');
const { authenticateUser } = require('../../auth/authentication.js');
const { sendGATimingEvent } = require('../../helpers/googleAnalytics.js');
const { handleErrorResponse } = require('../../helpers/errorHandlers.js');
const { details: { host } } = require('../../../config/siteConfig.js');
/*

View file

@ -1,5 +1,5 @@
const { resolveUri } = require('helpers/lbryApi.js');
const { handleErrorResponse } = require('helpers/errorHandlers.js');
const { resolveUri } = require('../../helpers/lbryApi.js');
const { handleErrorResponse } = require('../../helpers/errorHandlers.js');
/*

View file

@ -1,5 +1,5 @@
const { handleErrorResponse } = require('helpers/errorHandlers.js');
const db = require('models');
const { handleErrorResponse } = require('../../helpers/errorHandlers.js');
const db = require('../../models');
/*

View file

@ -1,7 +1,7 @@
const { sendGAServeEvent } = require('helpers/googleAnalytics');
const { determineResponseType, logRequestData, getClaimIdAndServeAsset } = require('helpers/serveHelpers.js');
const lbryUri = require('helpers/lbryUri.js');
const handleShowRender = require('helpers/handleShowRender.jsx');
const { sendGAServeEvent } = require('../../helpers/googleAnalytics');
const { determineResponseType, logRequestData, getClaimIdAndServeAsset } = require('../../helpers/serveHelpers.js');
const lbryUri = require('../../helpers/lbryUri.js');
const handleShowRender = require('../../helpers/handleShowRender.jsx');
const SERVE = 'SERVE';
/*

View file

@ -1,12 +1,12 @@
const { sendGAServeEvent } = require('helpers/googleAnalytics');
const { sendGAServeEvent } = require('../../helpers/googleAnalytics');
const {
determineResponseType,
flipClaimNameAndIdForBackwardsCompatibility,
logRequestData,
getClaimIdAndServeAsset,
} = require('helpers/serveHelpers.js');
const lbryUri = require('helpers/lbryUri.js');
const handleShowRender = require('helpers/handleShowRender.jsx');
} = require('../../helpers/serveHelpers.js');
const lbryUri = require('../../helpers/lbryUri.js');
const handleShowRender = require('../../helpers/handleShowRender.jsx');
const SERVE = 'SERVE';

View file

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