Restore videos list components

This commit is contained in:
Chocobozzz
2019-03-21 16:49:46 +01:00
parent 7ccddd7b52
commit 489290b8b1
25 changed files with 401 additions and 465 deletions

View File

@@ -1,5 +1,4 @@
import * as Sequelize from 'sequelize'
import { Op } from 'sequelize'
import {
AllowNull,
BeforeDestroy,
@@ -458,7 +457,7 @@ export class VideoCommentModel extends Model<VideoCommentModel> {
const query = {
where: {
updatedAt: {
[Op.lt]: beforeUpdatedAt
[Sequelize.Op.lt]: beforeUpdatedAt
},
videoId
}

View File

@@ -1,5 +1,4 @@
import * as Sequelize from 'sequelize'
import { Op } from 'sequelize'
import * as Bluebird from 'bluebird'
import { AllowNull, BelongsTo, Column, CreatedAt, DataType, ForeignKey, Is, Model, Scopes, Table, UpdatedAt } from 'sequelize-typescript'
import { isActivityPubUrlValid } from '../../helpers/custom-validators/activitypub/misc'
@@ -206,7 +205,7 @@ export class VideoShareModel extends Model<VideoShareModel> {
const query = {
where: {
updatedAt: {
[Op.lt]: beforeUpdatedAt
[Sequelize.Op.lt]: beforeUpdatedAt
},
videoId
}