blob: dcf8aa03c8b3fbf3e8532d005b893b6c254dc687 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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
}
// ---------------------------------------------------------------------------
|