diff options
Diffstat (limited to 'server/controllers/api/users/my-subscriptions.ts')
-rw-r--r-- | server/controllers/api/users/my-subscriptions.ts | 4 |
1 files changed, 2 insertions, 2 deletions
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 @@ | |||
1 | import * as express from 'express' | 1 | import * as express from 'express' |
2 | import 'multer' | 2 | import 'multer' |
3 | import { getFormattedObjects } from '../../../helpers/utils' | 3 | import { getFormattedObjects } from '../../../helpers/utils' |
4 | import { CONFIG, sequelizeTypescript } from '../../../initializers' | 4 | import { sequelizeTypescript, WEBSERVER } from '../../../initializers' |
5 | import { | 5 | import { |
6 | asyncMiddleware, | 6 | asyncMiddleware, |
7 | asyncRetryTransactionMiddleware, | 7 | asyncRetryTransactionMiddleware, |
@@ -80,7 +80,7 @@ async function areSubscriptionsExist (req: express.Request, res: express.Respons | |||
80 | 80 | ||
81 | const handles = uris.map(u => { | 81 | const handles = uris.map(u => { |
82 | let [ name, host ] = u.split('@') | 82 | let [ name, host ] = u.split('@') |
83 | if (host === CONFIG.WEBSERVER.HOST) host = null | 83 | if (host === WEBSERVER.HOST) host = null |
84 | 84 | ||
85 | return { name, host, uri: u } | 85 | return { name, host, uri: u } |
86 | }) | 86 | }) |