Add ability for uploaders to schedule video update

This commit is contained in:
Chocobozzz 2018-06-14 18:06:56 +02:00
parent bf079b7bfd
commit 2baea0c77c
No known key found for this signature in database
GPG key ID: 583A612D890159BE
21 changed files with 469 additions and 22 deletions

View file

@ -22,6 +22,7 @@ import { VideoFileModel } from '../models/video/video-file'
import { VideoShareModel } from '../models/video/video-share'
import { VideoTagModel } from '../models/video/video-tag'
import { CONFIG } from './constants'
import { ScheduleVideoUpdateModel } from '../models/video/schedule-video-update'
require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to string
@ -73,7 +74,8 @@ async function initDatabaseModels (silent: boolean) {
VideoBlacklistModel,
VideoTagModel,
VideoModel,
VideoCommentModel
VideoCommentModel,
ScheduleVideoUpdateModel
])
if (!silent) logger.info('Database %s is ready.', dbname)