aboutsummaryrefslogblamecommitdiffhomepage
path: root/server/lib/blacklist.ts
blob: dcf8aa03c8b3fbf3e8532d005b893b6c254dc687 (plain) (tree)



















                                                                              
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
}

// ---------------------------------------------------------------------------