From 35bf0c83c80f59ca79f4b84fac8700f17adeb22d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 10 Oct 2017 10:02:18 +0200 Subject: Video blacklist refractoring --- server/lib/blacklist.ts | 20 -------------------- server/lib/index.ts | 1 - 2 files changed, 21 deletions(-) delete mode 100644 server/lib/blacklist.ts (limited to 'server/lib') diff --git a/server/lib/blacklist.ts b/server/lib/blacklist.ts deleted file mode 100644 index dcf8aa03c..000000000 --- a/server/lib/blacklist.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { logger } from '../helpers' -import { BlacklistedVideoInstance } from '../models' - -function removeVideoFromBlacklist (entry: BlacklistedVideoInstance) { - return entry.destroy() - .then(() => { - logger.info('Video removed from the blacklist') - }) - .catch(err => { - logger.error('Some error while removing video from the blacklist.', err) - }) -} - -// --------------------------------------------------------------------------- - -export { - removeVideoFromBlacklist -} - -// --------------------------------------------------------------------------- diff --git a/server/lib/index.ts b/server/lib/index.ts index df781f29f..8628da4dd 100644 --- a/server/lib/index.ts +++ b/server/lib/index.ts @@ -3,4 +3,3 @@ export * from './jobs' export * from './request' export * from './friends' export * from './oauth-model' -export * from './blacklist' -- cgit v1.2.3