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:
parent
769d332177
commit
35bf0c83c8
33 changed files with 239 additions and 269 deletions
|
@ -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
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
|
@ -3,4 +3,3 @@ export * from './jobs'
|
|||
export * from './request'
|
||||
export * from './friends'
|
||||
export * from './oauth-model'
|
||||
export * from './blacklist'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue