1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Video blacklist refractoring

This commit is contained in:
Chocobozzz 2017-10-10 10:02:18 +02:00
parent 769d332177
commit 35bf0c83c8
No known key found for this signature in database
GPG key ID: 583A612D890159BE
33 changed files with 239 additions and 269 deletions

View file

@ -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
}
// ---------------------------------------------------------------------------

View file

@ -3,4 +3,3 @@ export * from './jobs'
export * from './request'
export * from './friends'
export * from './oauth-model'
export * from './blacklist'