From 6dd9de95dfa39bd5c1faed00d1dbd52cd112bae0 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 11 Apr 2019 11:33:44 +0200 Subject: Move config in its own file --- server/controllers/api/users/my-subscriptions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/controllers/api/users/my-subscriptions.ts') diff --git a/server/controllers/api/users/my-subscriptions.ts b/server/controllers/api/users/my-subscriptions.ts index a173adfd0..59b906a8b 100644 --- a/server/controllers/api/users/my-subscriptions.ts +++ b/server/controllers/api/users/my-subscriptions.ts @@ -1,7 +1,7 @@ import * as express from 'express' import 'multer' import { getFormattedObjects } from '../../../helpers/utils' -import { CONFIG, sequelizeTypescript } from '../../../initializers' +import { sequelizeTypescript, WEBSERVER } from '../../../initializers' import { asyncMiddleware, asyncRetryTransactionMiddleware, @@ -80,7 +80,7 @@ async function areSubscriptionsExist (req: express.Request, res: express.Respons const handles = uris.map(u => { let [ name, host ] = u.split('@') - if (host === CONFIG.WEBSERVER.HOST) host = null + if (host === WEBSERVER.HOST) host = null return { name, host, uri: u } }) -- cgit v1.2.3