mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-16 18:25:09 -06:00
21 lines
571 B
TypeScript
21 lines
571 B
TypeScript
|
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
|
||
|
}
|
||
|
|
||
|
// ---------------------------------------------------------------------------
|